checkDisp | R Documentation |
The values returned are those used for plot(x.lm, which=3)
,
where x.lm
is a linear model or a generalized linear model.
Plot the object returned to assess how successful the weights,
determined using the function scaleLocAdjust
, have been
in adjusting for heterogenous variances.
checkDisp(x, span = 0.75)
x |
Model fitted using |
span |
span parameter for use in smoothing the square root of standardized deviance residuals. |
A data frame, with:
linpred |
Predicted values, on the scale of the linear predictor |
absrSmooth |
Smoothed values of the square roots of absolute values of standardised deviance residuals. |
royal <- subset(qra::codling1988, Cultivar=="ROYAL")
royal.glm <- glm(cbind(dead,total-dead)~ct, data=royal,
family=quasibinomial(link='cloglog'))
royalFix <- qra::scaleLocAdjust(royal.glm, lambda=2)
## Check range of indicated prior weights
range(royalFix[[2]])
## Range of updated dispersion estimates
range(summary(royalFix[[1]])[['dispersion']]/royalFix[[2]])
xy <- qra::checkDisp(royalFix[[1]])
plot(xy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.