# S3 method for HLfit
plot(x, which = c("mean", "ranef"),
titles = list(
meanmodel=list(outer="Mean model",devres="Deviance residuals",
absdevres="|Deviance residuals|", resq="Residual quantiles",
devreshist="Deviance residuals"),
ranef=list(outer="Random effects and leverages",qq="Random effects Q-Q plot",
levphi=expression(paste("Leverages for ",phi)),
levlambda=expression(paste("Leverages for ",lambda)))
),
control= list(), ...)
"predict"
for a plot of predicted response against actual response.
main
(inner and outer) titles of the plots. See the default value for the format.
pch="+"
and pcol="blue"
for points, and lcol="red"
for curves.
plot.HLfit
to par
.
HLfit
. The PQL
and EQL-
method use leverages obtained as diagonal elements of the “hat” matrix; more elaborate methods will introduce corrections for non-Gaussian response and for non-Gaussian random effects; and “(.,1)” methods will add another correction taking into account the variation of the GLM weights in the logdet Hessian term of restricted likelihood.In principle the deviance residuals for the mean model should have a nearly Gaussian distribution hence form a nearly straight line on a Q-Q plot. However this is (trivially) not so for well-specified (nearly-)binary response data nor even for well-specified Poisson response data with moderate expectations. Hence this plot is not so useful.
## see example for data(scotlip)
Run the code above in your browser using DataLab