powered by
Model predictions for WRM
WRM
# S3 method for WRM predict(object, ..., newdata, sm = FALSE, newcoord = NA)
A model object of class WRM
Other arguments passed to predict
predict
A data frame containing variables used to make predictions.
Logical. Should part of smooth components be included?
New coordinates corresponding to observations in newdata.
newdata
A vector of predictions based on a user-specified model
# NOT RUN { data(musdata) coords<- musdata[,4:5] mwrm<-WRM(musculus ~ pollution + exposure, "poisson", musdata, coord=coords, level=1, plot=TRUE) pred<-predict(mwrm,newdata=musdata) # }
Run the code above in your browser using DataLab