rdiagnostic {RRJ}R Documentation

Residuals Plot for Models Diagnostics

Description

rdiagnostic Make a residuals diagnostic plot.

Usage

rdiagnostic(fittedmodel,nmodels=1)

Arguments

fittedmodel The name of model object to be tested
nmodels The number of models to plot, this make a mfrow=c(nmodels,3). To be used only in the first rdiagnostic use.

Acknowledgements

I thank all R-help list's contributors for yours, direct or indirect, contributions in this function.

Author(s)

Ronaldo Reis Jr. <chrysopa@insecta.ufv.br>

References

Paula, G. A. (2001): Modelos de Regressão com apoio computacional.

See Also

glm

Examples

## Load dataset
data(rrjplotbar)
attach(rrjplotbar)
## making a model
m1 <- glm(y~soil+lumin)
## making a diagnostic for this model
rdiagnostic(m1,nmodels=1)
## making another model
m2 <- glm(y~soil+lumin,family=poisson)
## making a comparative disgnostic for both models
rdiagnostic(m1,nmodels=2)
rdiagnostic(m2)

[Package RRJ version 0.6.3 Index]