powered by
Obtains predictions from a fitted GWRM object.
# S3 method for gw predict(object = NULL, newdata = NULL, ...)
a fitted object of class inheriting from "gw".
"gw"
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.
# NOT RUN { data(goals) fit <- gw(goals ~ position, data = goals) predict(fit) # }
Run the code above in your browser using DataLab