Plots four model checking plots: an pred-res plot (residuals against predicted values), a Normal Quantile-Quantile (Q-Q) plot, a histogram of the residuals with a normal distribution super-imposed and a Cook's Distance plot.
x: a vector of observations, or the residuals from fitting a linear model. Alternatively, a fitted lm object. If x is a single vector, then the implicit assumption is that the mean (or null) model is being fitted, i.e. lm(x ~ 1) and that the data are best summarised by the sample mean.
plotOrder: the order of the plots. 1: pred-res plot, 2: normal Q-Q plot, 3: histogram, 4: Cooks's Distance plot.
args: a list containing three additional lists eovcheckArgs, normcheckArgs and cooksArgs. The elements of these lists are the optional arguments of eovcheck, normcheck and cooks20x, and are explained in more detail in those functions. Most users will never use these arguments, but they provide super-flexibility in terms of what is displayed.
parVals: the values that are set via par for this plot. These are mfrow, xaxs, yaxs, pty, and mai. Most users will never use these arguments, but they provide super-flexibility in terms of what is displayed.
``: additional paramaters. Included for future flexibility, but unsure how this might be used currently.
Methods (by class)
modcheck(lm): Model checking plots
Examples
# An exponential growth curvee = rnorm(100,0,0.1)x = rnorm(100)y = exp(5+3* x + e)fit = lm(y ~ x, data = data.frame(x, y))modcheck(fit)# An exponential growth curve with the correct transformationfit = lm(log(y)~ x, data = data.frame(x, y))modcheck(fit)# Peruvian Indians datadata(peru.df)modcheck(lm(BP ~ weight, data = peru.df))