View source: R/predict.glmRob.q
predict.glmRob | R Documentation |
Obtains predictions and optionally estimates standard errors of those predictions from a fitted robust generalized linear model object.
## S3 method for class 'glmRob'
predict(object, newdata,
type = c("link", "response", "terms"), se.fit = FALSE,
terms = labels(object), dispersion = NULL, ...)
object |
a glmRob object. |
newdata |
optionally, a data frame in which to look for variables with which to predict. If omitted, the fitted linear predictors are used. |
type |
a character string specifying the type of prediction. The choices are "link" for predictions on the scale of the linear predictor, "response" for predctions on the scale of the response, and "terms" which returns a matrix giving the fitted values for each term in the model formula on the scale of the linear predictor. |
se.fit |
a logical value. If |
terms |
when |
dispersion |
the dispersion of the generalized linear model fit to be assumed in computing the standard errors. If omitted, that returned by 'summary' applied to the object is used. |
... |
additional arguments required by the generic predict method. |
If se.fit = FALSE
, a vector or matrix of predictions. Otherwise a list with components:
fit |
Predictions |
se.fit |
Estimated standard errors |
glmRob
,
predict
.
data(breslow.dat)
bres.rob <- glmRob(sumY ~ Age10 + Base4 * Trt, family = poisson(), data = breslow.dat)
predict(bres.rob)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.