Skip to content

spatialreg

1.4-3

Spatial Regression Analysis

30packages depend
230.3Kdownloads / year
14.3%test coverage
13/13checks pass

Overview

About
Maintained by Roger BivandFirst published 2019-04-0118 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 9.4 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.00
14.3%
Coverage · measured lines
100%
Documentation · exports
13
Dependencies · direct
Check history
  • OK2026-07-22
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-07-21
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-26
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 4 earlier snapshots
  • NOTE2026-03-22
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-03-21
    10 OK · 3 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-17
    13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
92%
Documented parameters
90%
Return-value docs
88%
References docs
85%

Downloads

230.3K
CRAN downloads in the past year
Rank #957 · ~631/day · ~19.2K/mo
Daily download trend is not available in this view yet.
11.6K30 days
48.5K90 days
230.3K1 year
Compare downloads with other packages →
Also on2.1K r2u29 autocran5.7K conda_forge62 c2d4u

Repository

Repository
53Stars
11Forks
6Open issues
0Open PRs
0Releases
233Commits
6Contributors
spatial-regressionspatial-dependencemaximum-likelihoodimpactsbayesianspatial-econometrics
233 commits · Last activity 2026-05-20 · +1.9% stars, 30d

Stars over time

2025-07-15 · 492026-07-07 · 53

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/r-spatial/spatialreg on 2026-07-19.

Continuous integration (1)
GitHub Actions
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)
Depends (4)
R >= 3.3spDataMatrixsf
Imports (10)
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

People & History

People (23)
Maintainer (1)
Maintainer, Author
Authors (2)
Maintainer, Author
Contributors (21)
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Show 13 more contributors
Contributor
Contributor
Contributor · added in 1.2-1
Contributor
Contributor, Translator
Contributor
Contributor
Contributor · added in 1.3-6
Contributor
Contributor · added in 1.1-8
Contributor
Contributor
Translators (1)
Contributor, Translator
Listed in earlier versions (4)
no longer listed · 1.2-6 to 1.2-8
no longer listed · 1.2-6 to 1.2-8
no longer listed · 1.2-6 to 1.2-8
no longer listed · 1.2-6 to 1.2-8
Package Timeline

18 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.4-3Latest
    2026-03-21 · current release · diff ↗
  • 1.4-2
    2025-09-06 · diff ↗
  • 1.4-1
    2025-09-04 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.3-6
    2024-12-02 · diff ↗
  • 1.3-5
    2024-08-19 · diff ↗
  • 1.3-4
    2024-06-10 · diff ↗
  • 1.3-3
    2024-05-31 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.3-2
    2024-02-06 · diff ↗
  • 1.3-1
    2023-11-23 · diff ↗
  • 1.2-9
    2023-05-25 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.2-8
    2023-03-01 · diff ↗
  • 1.2-6
    2022-10-07 · diff ↗
Show 11 earlier events
  • 1.2-5
    2022-08-16 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2-3
    2022-04-18 · diff ↗
  • 1.2-1
    2021-11-11 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.1-8
    2021-05-03 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.1-5
    2019-12-02 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.1-3
    2019-04-01
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2019-04-01
Total releases
18 / 7 yrs
License
GPL-2 OSI
Minimum R
≥ 3.3
Download size
1.4 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →