spdep_lmtest: spatial linear models selection

spdep_lmtestR Documentation

spatial linear models selection

Description

spatial linear models selection

Usage

spdep_lmtest(formula, data, listw = NULL)

Arguments

formula

A formula for linear regression model.

data

An sf object of observation data.

listw

(optional) A listw. See spdep::mat2listw() and spdep::nb2listw() for details.

Value

A list

Examples

gzma = sf::read_sf(system.file('extdata/gzma.gpkg',package = 'sdsfun'))
spdep_lmtest(PS_Score ~ ., gzma)


sdsfun documentation built on April 3, 2025, 8:39 p.m.