View source: R/fastglm-methods.R
| predict.fastglm | R Documentation |
Obtains predictions and optionally estimates standard errors of those predictions from a fitted generalized linear model object.
## S3 method for class 'fastglm'
predict(
object,
newdata = NULL,
type = c("link", "response", "terms"),
se.fit = FALSE,
dispersion = NULL,
offset = NULL,
terms = NULL,
...
)
object |
a fitted object of class inheriting from '"fastglm"'. |
newdata |
a model matrix, or a data frame for a formula fit. |
type |
the type of prediction required. The default is on the scale of the linear predictors;
the alternative " The value of this argument can be abbreviated. |
se.fit |
logical switch indicating if standard errors are required. |
dispersion |
the dispersion of the GLM fit to be assumed in computing the standard errors.
If omitted, that returned by |
offset |
optional prediction offsets. |
terms |
optional subset of model terms for term predictions. |
... |
further arguments passed to or from other methods. |
Predictions on the requested scale. With 'se.fit=TRUE', a 'fastglm_prediction' list containing 'fit', 'se.fit', and 'residual.scale'; see fastglm-prediction-methods for printing and table extraction.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.