predict.gw {GWRM} | R Documentation |
Obtains predictions from a fitted GWRM object.
## S3 method for class 'gw'
predict(object = NULL, newdata = NULL, ...)
object |
a fitted object of class inheriting from |
newdata |
optionally, a data frame in which to look for variables with which to predict. If omitted, the fitted linear predictors are used. |
... |
further arguments passed to or from other methods. |
A data frame with newdata and their fitted means.
data(goals)
fit <- gw(goals ~ position, data = goals)
predict(fit)