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