interval | R Documentation |
Prediction and Confidence Intervals for glm
Objects
interval(glm.object, ...)
## S3 method for class 'glm'
interval(glm.object, linkfit.object,
type = c("link", "response"),
conf.level = 0.95, ...)
glm.object |
result from a call to the |
linkfit.object |
result from a call to the |
type |
Either |
conf.level |
Confidence level, for example |
... |
Other arguments to be passed to |
Matrix with five columns: fit, ci.low, ci.hi, pi.low,
pi.hi
and as many rows as predict.glm
returns.
Richard M. Heiberger <rmh@temple.edu>
data(spacshu)
spacshu.bin.glm <- glm(damage ~ tempF, data=spacshu, family=binomial)
## observed data
spacshu.interval <- interval(spacshu.bin.glm)
## new data, link
spacshu.interval.link <- interval(spacshu.bin.glm, newdata=data.frame(tempF=30:85))
## new data, response
spacshu.interval.response <- interval(spacshu.bin.glm, newdata=data.frame(tempF=30:85),
type="response")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.