Skip to content

spatialreg

Spatial Regression Analysis

v1.4-3 · Mar 20, 2026 · GPL-2

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) <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>.

Downloads

15.6K

Last 30 days

983rd

41.4K

Last 90 days

202.8K

Last year

Trend: +23.5% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 26, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 21, 2026
NOTE r-devel-linux-x86_64-debian-clang

compiled code

File ‘spatialreg/libs/spatialreg.so’:
  Found non-API call to R: ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-linux-x86_64-fedora-gcc

compiled code

File ‘spatialreg/libs/spatialreg.so’:
  Found non-API call to R: ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-windows-x86_64

compiled code

File 'spatialreg/libs/x64/spatialreg.dll':
  Found non-API call to R: 'Rf_findVarInFrame'

Compiled code should not call non-API entry points in R.

See 'Writing portable packages' in the 'Writing R Extensions' manual,
and section 'Moving into C API compliance' for issues with the use of
non-API entry points.
WARNING 10 OK · 3 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Mar 20, 2026
NOTE r-devel-linux-x86_64-debian-clang

compiled code

File ‘spatialreg/libs/spatialreg.so’:
  Found non-API call to R: ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
WARNING r-devel-linux-x86_64-debian-gcc

compiled code

File ‘spatialreg/libs/spatialreg.so’:
  Found non-API call to R: ‘Rf_findVarInFrame’
This entry point may be removed soon.

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-linux-x86_64-fedora-gcc

compiled code

File ‘spatialreg/libs/spatialreg.so’:
  Found non-API call to R: ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-windows-x86_64

compiled code

File 'spatialreg/libs/x64/spatialreg.dll':
  Found non-API call to R: 'Rf_findVarInFrame'

Compiled code should not call non-API entry points in R.

See 'Writing portable packages' in the 'Writing R Extensions' manual,
and section 'Moving into C API compliance' for issues with the use of
non-API entry points.
NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 16, 2026
NOTE r-devel-linux-x86_64-debian-gcc

compiled code

File ‘spatialreg/libs/spatialreg.so’:
  Found non-API call to R: ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (26)

Dependency Network

Dependencies Reverse dependencies spData Matrix sf spdep coda mvtnorm boot LearnBayes nlme multcomp marginaleffects SpatialRegimes lagsarlmtree spatialprobit spatialreg.hp ssfa FlexScan GWmodel HSAR SCDA bigDM bispdep latticeDensity pmlsp pspatreg spANOVA +11 more reverse deps spatialreg

Version History

updated 1.4-3 ← 1.4-2 diff Mar 20, 2026
new 1.4-2 Mar 10, 2026
updated 1.4-2 ← 1.4-1 diff Sep 5, 2025
updated 1.4-1 ← 1.3-6 diff Sep 3, 2025
updated 1.3-6 ← 1.3-5 diff Dec 1, 2024
updated 1.3-5 ← 1.3-4 diff Aug 18, 2024
updated 1.3-4 ← 1.3-3 diff Jun 9, 2024
updated 1.3-3 ← 1.3-2 diff May 30, 2024
updated 1.3-2 ← 1.3-1 diff Feb 5, 2024
updated 1.3-1 ← 1.2-9 diff Nov 22, 2023
updated 1.2-9 ← 1.2-8 diff May 24, 2023
updated 1.2-8 ← 1.2-6 diff Feb 28, 2023
updated 1.2-6 ← 1.2-5 diff Oct 6, 2022
updated 1.2-5 ← 1.2-3 diff Aug 15, 2022
updated 1.2-3 ← 1.2-1 diff Apr 17, 2022
updated 1.2-1 ← 1.1-8 diff Nov 10, 2021
updated 1.1-8 ← 1.1-5 diff May 2, 2021
updated 1.1-5 ← 1.1-3 diff Dec 1, 2019
new 1.1-3 Mar 31, 2019