Crandore Hub

spatialreg

Spatial Regression Analysis

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) <doi:10.1080/01621459.1975.10480272>. The models are further described by 'Anselin' (1988) <doi:10.1007/978-94-015-7799-1>. Spatial two stage least squares and spatial general method of moment models initially proposed by 'Kelejian' and 'Prucha' (1998) <doi:10.1023/A:1007707430416> and (1999) <doi:10.1111/1468-2354.00027> are provided. Impact methods and MCMC fitting methods proposed by 'LeSage' and 'Pace' (2009) <doi:10.1201/9781420064254> 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) <doi:10.1111/gean.12008>, and model fitting methods by 'Bivand' and 'Piras' (2015) <doi:10.18637/jss.v063.i18>; both of these articles include extensive lists of references. A recent review is provided by 'Bivand', 'Millo' and 'Piras' (2021) <doi:10.3390/math9111276>. '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 <doi:10.1177/016001769702000109>.

README

Spatial Regression Analysis

A collection of functions for estimating spatial simultaneous
autoregressive (SAR) lag and error models, weighted and unweighted
SAR and CAR spatial regression models, and GM SAR error models.

This file is intended to clarify ownership and copyright: where
possible individual files also carry brief copyright notices. 

Copyrights
==========

File: R/lag.spsarlm.R is copyright (c) 1998-2002 by Roger Bivand and Andrew
Bernat, and is subject to the licence at the foot of this file.

File: R/kpgm_new.R is copyright (c) 2005 by Luc Anselin and Roger Bivand, 
and is subject to the licence at the foot of this file.

File: R/SpatialFiltering.R is copyright (c) 2005 by Yongwan Chun, Michael 
Tiefelsdorf and Roger Bivand, and is subject to the licence at the foot 
of this file.

File R/SpBreg.R is copyright (c) 2011-2019 by Abhirup Mallik,
Virgilio Gómez-Rubio and Roger Bivand, and is subject to the licence 
at the foot of this file. It is based on translated Matlab code from the 
Spatial Econometrics toolbox by James LeSage and R. Kelley Pace 
(http://www.spatial-econometrics.com/).

All other files are copyright (c) 1998-2019 Roger S. Bivand and
are subject to the licence at the foot of this file.

Licence
=======

    This is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.


The file COPYING in the R top-level directory is a copy of the "GNU
General Public License".

Roger.Bivand@nhh.no

Versions across snapshots

VersionRepositoryFileSize
1.4-3 rolling linux/jammy R-4.5 spatialreg_1.4-3.tar.gz 2.1 MiB
1.4-3 rolling linux/noble R-4.5 spatialreg_1.4-3.tar.gz 2.1 MiB
1.4-3 rolling source/ R- spatialreg_1.4-3.tar.gz 1.3 MiB
1.4-3 latest linux/jammy R-4.5 spatialreg_1.4-3.tar.gz 2.1 MiB
1.4-3 latest linux/noble R-4.5 spatialreg_1.4-3.tar.gz 2.1 MiB
1.4-3 latest source/ R- spatialreg_1.4-3.tar.gz 1.3 MiB
1.4-3 2026-04-26 source/ R- spatialreg_1.4-3.tar.gz 1.3 MiB
1.4-3 2026-04-23 source/ R- spatialreg_1.4-3.tar.gz 1.3 MiB
1.4-3 2026-04-09 windows/windows R-4.5 spatialreg_1.4-3.zip 2.1 MiB
1.3-6 2025-04-20 source/ R- spatialreg_1.3-6.tar.gz 1.3 MiB

Dependencies (latest)

Depends

Imports

Suggests