ntsperr: Estimates a Spatial error model (SEM) lag model.

View source: R/stadl_models.R

ntsperrR Documentation

Estimates a Spatial error model (SEM) lag model.

Description

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.

Usage

ntsperr(lmobj, wm)

Arguments

lmobj

An object created by the lm function.

wm

neighbor spatial weight matrix created by the make_ntspmat.

Value

The output will be SAR model estimated.

Examples

## Not run: 
sdem_reex <- ntsperr(ols,wm)

## End(Not run)

judechays/STADL documentation built on May 12, 2022, 10:50 p.m.