rdiagnostic {RRJ} | R Documentation |
rdiagnostic
Make a residuals diagnostic plot.
rdiagnostic(fittedmodel,nmodels=1)
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. |
I thank all R-help list's contributors for yours, direct or indirect, contributions in this function.
Ronaldo Reis Jr. <chrysopa@insecta.ufv.br>
Paula, G. A. (2001): Modelos de Regressão com apoio computacional.
## 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)