spind (version 2.1.3)

predict.GEE: predict.GEE

Description

Model predictions for GEE

Usage

# S3 method for GEE
predict(object, ..., newdata)

Arguments

object

A model object of class GEE to be used for making predictions

...

Other arguments to be passed to predict

newdata

A data frame containing variables to base the predictions on.

Value

A vector of predicted values

Examples

Run this code
# NOT RUN {
data(musdata)
coords<-musdata[,4:5]
mgee<-GEE(musculus ~ pollution + exposure,'poisson',musdata,
          coord=coords,corstr="fixed",plot=TRUE)
pred<-predict(mgee,newdata=musdata)

# }

Run the code above in your browser using DataLab