Description

These functions draw Ceres plots for linear and generalized linear models.

Usage



ceresPlots(model, terms = ~., layout = NULL, ask, main,...)

ceresPlot(model, ...)

## S3 method for class 'lm'
ceresPlot(model, variable, id=FALSE, line=TRUE, smooth=TRUE, col=carPalette()[1], col.lines=carPalette()[-1],
xlab, ylab, pch=1, lwd=2, grid=TRUE, ...)

## S3 method for class 'glm'
ceresPlot(model, ...)

Arguments

Details

Ceres plots are a generalization of component+residual (partial residual) plots that are less prone to leakage of nonlinearity among the predictors. The function intended for direct use is ceresPlots. The model cannot contain interactions, but can contain factors. Factors may be present in the model, but Ceres plots cannot be drawn for them.

Examples

ceresPlots(lm(prestige~income+education+type, data=Prestige), terms= ~ . - type)

Value

NULL. These functions are used for their side effect: producing plots.

Author(s)

John Fox jfox@mcmaster.ca

References

See Also

crPlots, avPlots, showLabels