ntspreg | R Documentation |
ntspreg
estimates a Spatial AutoRegressive (SAR) model (spatialreg::lagsarlm)
using the nearest neighbor spatial weights matrix you previously created
and a linear regression model.
ntspreg(lmobj, wm)
lmobj |
An object created by the |
wm |
a list, which includes the spatial weights matrix, created by the |
The output will be SAR model estimated.
## Not run: sar_reex <- ntspreg(ols,wm) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.