Learn R Programming

gwer (version 1.0)

residuals.elliptical: Extract Model Residuals

Description

residuals is a generic function which extracts model residuals from objects returned by modeling functions.

Usage

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

Arguments

object

fit object for elliptical regression model.

type

an character string that indicates the type of residuals.

...

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

Value

Residuals 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)
# }

Run the code above in your browser using DataLab