Description Usage Arguments Value See Also Examples
View source: R/predict.glmRob.q
Obtains predictions and optionally estimates standard errors of those predictions from a fitted robust generalized linear model object.
1 2 3 4 |
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 |
1 2 3 | 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.