Predictions for Generalized Estimating Equations
Produces predictions and optionally estimates standard errors of those predictions from a fitted generalized estimating equation.
## S3 method for class 'glmgee' predict(object, ..., newdata, se.fit = FALSE, type = c("link", "response"))
object |
an object of the class glmgee which is obtained from the fit of a generalized estimating equation. |
... |
further arguments passed to or from other methods. |
newdata |
an (optional) |
se.fit |
an (optional) logical switch indicating if standard errors are required. By default, |
type |
an (optional) character string giving the type of prediction required. The default, "link", is on the scale of the linear predictors, and the alternative, "response", is on the scale of the response variable. |
A matrix with so many rows as newdata
and one column with the predictions. If se.fit=
TRUE then a second column with estimates standard errors is included.
mod <- size ~ poly(days,4) + treat fit <- glmgee(mod, id=tree, family=Gamma("log"), data=spruce, corstr="Stationary-M-dependent(2)") newdata <- data.frame(days=c(556,556),treat=as.factor(c("normal","ozone_enriched"))) predict(fit,newdata=newdata,type="response",se.fit=TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.