Learn R Programming

gwer (version 2.1)

residuals.elliptical: Extract Residuals for Elliptical Model Fits

Description

This function compute differents type of residuals to the fitted elliptical regression model.

Usage

# S3 method for elliptical
residuals(
  object,
  type = c("stand", "ordinal", "response", "pearson", "desvio"),
  ...
)

Arguments

object

an object with the result of the fitted elliptical regression model.

type

a character string that indicates the type of residuals. If is stand will be computed the standar residuals. If is ordinal will be computed the ordinal residuals. If is response will be computed the response residuals. If is pearson will be computed the pearson residuals. If is desvio will be computed the desviance residuals. By default is stand.

...

arguments to be used to form the default control argument if it is not supplied directly.

Value

Residuals of the specific type extracted from the object.

References

Galea, M., Paula, G. A., and Cysneiros, F. J. A. (2005). On diagnostics in symmetrical nonlinear models. Statistics & Probability Letters, 73(4), 459-467. https://doi.org/10.1016/j.spl.2005.04.033

See Also

elliptical

Examples

Run this code
# NOT RUN {
data(luzdat)
y <- luzdat$y
x1 <- luzdat$x1 ; x1 <- factor(x1) ; x1 <- C(x1,treatment)
x2 <- luzdat$x2
x3 <- (luzdat$x2)^2
luz <- data.frame(y,x1,x2,x3)
elliptical.fitt <- elliptical(y ~ x1+x2+x3, family = Student(df=5)
,data=luz)
residuals(elliptical.fitt, type = "stand")
# }

Run the code above in your browser using DataLab