| predictGLM | R Documentation |
Teaching helper for predictions from log-link and logit-link generalised
linear models. It wraps predict.glm with standard errors and
returns fitted values with confidence limits on either the link scale or the
response scale.
predictGLM(object, newdata, type = "link", cilevel = 0.95, quasit = FALSE, ...)
object |
a |
newdata |
prediction data frame. |
type |
|
cilevel |
confidence level for the intervals. |
quasit |
if |
... |
optional arguments that are passed to |
This is not an S3 predict() method and is not intended to be a
drop-in replacement for base R prediction methods. It is the more general GLM
teaching helper in this package; predictCount remains a
specialised count-focused wrapper with rounded response-scale output.
Note: newdata must include all first-order terms used in the fitted
model. This simplified requirement reflects the teaching-wrapper interface
and is not a complete reproduction of predict.glm().
A data frame with columns fit, lwr, and upr containing
fitted values and confidence limits on the requested scale.
predict, predict.glm, predictCount.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.