Learn R Programming

gwer (version 1.0)

elliptical.diag.plots: Diagnostic Plots for Elliptical Regression Models

Description

This function produces diagnostic measures plots for elliptical regression models.

Usage

elliptical.diag.plots(ellipticalfit, ellipticaldiag = NULL, weighting,
  which, subset = NULL, iden = F, labels = NULL, ret = F, ...)

Arguments

ellipticalfit

fit object for elliptical regression model.

ellipticaldiag

objects containing the diagnostic measures, by default obtained from object.

weighting

type of model weighting used.

which

an optional numerical that indicates which plot is returned.

subset

optional vector specifying a subset of observations to be used in the fitting process.

iden

a logical value used to identify observations. if TRUE the observations can be identified in the graphic window.

labels

a optinal vector specifying a labels plots.

ret

a logical value to indicate funtion returns. If TRUE the return of the function will be to the diagnostic measures used.

...

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

Value

If ret is true, returns a list of diagnostic arrays (see elliptical.diag for more details).

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, elliptical.diag

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)
elliptical.diag.plots(elliptical.fitt, which=3)
# }

Run the code above in your browser using DataLab