ntspsac: Estimates a Spatial Autocorrelation (SAC) lag model.

View source: R/stadl_models.R

ntspsacR Documentation

Estimates a Spatial Autocorrelation (SAC) lag model.

Description

ntspsac estimates a Spatial Autocorrelation (SAC) model (spatialreg::sacsarlm) using the nearest neighbor spatial weights matrix you previously created and a linear regression model.

Usage

ntspsac(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: 
sac_reex <- ntsperr(ols,wm)

## End(Not run)

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