predict.gw: GWRM Predictions

Description Usage Arguments Value Examples

View source: R/predict.gw.r

Description

Obtains predictions from a fitted GWRM object.

Usage

1
2
## S3 method for class 'gw'
predict(object = NULL, newdata = NULL, ...)

Arguments

object

a fitted object of class inheriting from "gw".

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.

Value

A data frame with newdata and their fitted means.

Examples

1
2
3
data(goals)
fit <- gw(goals ~ position, data = goals)
predict(fit)

GWRM documentation built on July 26, 2021, 5:09 p.m.

Related to predict.gw in GWRM...