Learn R Programming

spatialreg (version 1.4-3)

Spatial Regression Analysis

Description

A collection of all the estimation functions for spatial cross-sectional models (on lattice/areal data using spatial weights matrices) contained up to now in 'spdep'. These model fitting functions include maximum likelihood methods for cross-sectional models proposed by 'Cliff' and 'Ord' (1973, ISBN:0850860369) and (1981, ISBN:0850860814), fitting methods initially described by 'Ord' (1975) . The models are further described by 'Anselin' (1988) . Spatial two stage least squares and spatial general method of moment models initially proposed by 'Kelejian' and 'Prucha' (1998) and (1999) are provided. Impact methods and MCMC fitting methods proposed by 'LeSage' and 'Pace' (2009) are implemented for the family of cross-sectional spatial regression models. Methods for fitting the log determinant term in maximum likelihood and MCMC fitting are compared by 'Bivand et al.' (2013) , and model fitting methods by 'Bivand' and 'Piras' (2015) ; both of these articles include extensive lists of references. A recent review is provided by 'Bivand', 'Millo' and 'Piras' (2021) . 'spatialreg' >= 1.1-* corresponded to 'spdep' >= 1.1-1, in which the model fitting functions were deprecated and passed through to 'spatialreg', but masked those in 'spatialreg'. From versions 1.2-*, the functions have been made defunct in 'spdep'. From version 1.3-6, add Anselin-Kelejian (1997) test to `stsls` for residual spatial autocorrelation .

Copy Link

Version

Install

install.packages('spatialreg')

Monthly Downloads

11,924

Version

1.4-3

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Roger Bivand

Last Published

March 21st, 2026

Functions in spatialreg (1.4-3)

aple

Approximate profile-likelihood estimator (APLE)
ML_models

Spatial simultaneous autoregressive model estimation by maximum likelihood
lmSLX

Spatial Durbin linear (SLX, spatially lagged X) model
SpatialFiltering

Semi-parametric spatial filtering
MCMCsamp

MCMC sample from fitted spatial regression
lextrB

Find extreme eigenvalues of binary symmetric spatial weights
LR.Sarlm

Likelihood ratio test
gstsls

Spatial simultaneous autoregressive SAC model estimation by GMM
predict.Sarlm

Prediction for spatial simultaneous autoregressive linear model objects
do_ldet

Spatial regression model Jacobian computations
invIrM

Compute SAR generating operator
impacts

Impacts in spatial lag models
griffith_sone

Spatial weights matrix eigenvalues
lagmess

Matrix exponential spatial lag model
set.mcOption

Options for parallel support
similar.listw

Create symmetric similar weights lists
trW

Spatial weights matrix powers traces
stsls

Generalized spatial two stage least squares
as.spam.listw

Spatial neighbour sparse representation
set.ZeroPolicyOption

Control checking of spatial object IDs
spautolm

Spatial conditional and simultaneous autoregression model estimation
aple.mc

Approximate profile-likelihood estimator (APLE) permutation test
spBreg_lag

Bayesian MCMC spatial simultaneous autoregressive model estimation
aple.plot

Approximate profile-likelihood estimator (APLE) scatterplot
ME

Moran eigenvector GLM filtering
GMerrorsar

Spatial simultaneous autoregressive error model estimation by GMM