## Halfnormal plot with simulated envelopes
data(beetles)
beetles.glm <- glm(cbind(y, n-y) ~ conc, family=binomial, data=beetles)
halfnorm(beetles.glm, resType='pearson')
## Not run:
# ## Halfnormal plot with simulated envelopes
# ## Two points are interactively identified when they are selected with the mouse
# halfnorm(beetles.glm, resType='deviance', identify = T, n = 2)
# ## End(Not run)
Run the code above in your browser using DataLab