Skip to content

spatialreg

1.4-3Package record

Spatial Regression Analysis

24packages dependsuggested by 7
210.4Kdownloads / year
14.3%test coverage
13/13flavors OK

Overview

About

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
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-22
  • ERROR12 OK, 1 ERROR2026-07-21
  • OK13 OK2026-06-09
Show 6 earlier changesHide 6 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-26
  • NOTE11 OK, 3 NOTE2026-03-22
  • WARNING10 OK, 3 NOTE, 1 WARNING2026-03-21
  • NOTE13 OK, 1 NOTE2026-03-17
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.4-3
README· In the repository, left out of the releaseVignettesYes · 3 · dynamicNEWSYes · 100% structured · does not mention 1.4-3Citation fileYes · cites a publicationWebsiteYes · pkgdown
Cites a JSS article
Help pages
26
Examples that run
92%24 run in a plain check · 2 never run
Exported functions with examples
100%
Documented parameters
90%
Return-value docs
88%
Help pages citing references
85%

Downloads

210.4K
CRAN downloads in the past year
Rank #994 · ~576/day · ~17.5K/mo
Daily download trend is not available in this view yet.
13.1K30 days
40.4K90 days
210.4K1 year
Compare downloads with other packages →
Also on2.4K r2u7 autocran5.9K conda_forge122 c2d4u

Repository

55Stars
11Forks
6Open issues
0Open PRs
0Releases
233Commits
6Commit identities
spatial-regressionspatial-dependencemaximum-likelihoodimpactsbayesianspatial-econometrics
233 commits · Last activity 2026-05-20 · +1.9% stars, 30d · Default branch at 1.4-4, ahead of CRAN 1.4-3 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
85%
Median days to close, 50 most recently updated closed issues
86
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-09-05 · 502026-09-24 · 55
PracticesBeta

4 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/r-spatial/spatialreg on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (2)
pkgdown

GitHub Pages site last deployed 2026-05-20

pkgdown site last built 2026-04-14

How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

Installing spatialreg adds 28 packages (17 with compiled code, 51 MB of source tarballs). Heaviest: sf 9.3 MB, TH.data 8.2 MB, data.table 5.7 MB.

Depends (4)
R >= 3.3spDataMatrixsf
Imports (10)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
24direct
5indirect
Depends 5 · Imports 19
Suggested by 7
Show all 31 packagesHide all 31 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (23)
Maintainer since 1.1-3 (2019), Author
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Show 13 more contributorsHide 13 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
Listed in earlier versions (4)
Show 4 peopleHide 4 people
no longer listed · 1.2-6 to 1.2-8
no longer listed · 1.2-6 to 1.2-8
Randal Johnson
no longer listed · 1.2-6 to 1.2-8
no longer listed · 1.2-6 to 1.2-8
Releases (18)

Pick two releases to compare their code metrics.

Show 11 earlier eventsHide 11 earlier events
  • 1.2-5
    record
    2022-08-16 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2-3
    record
    2022-04-18 · diff ↗
  • 1.2-1
    record
    2021-11-11 · diff ↗ ·
    added 6 exports
    invIrW, invIrM, aple.plot, localAple, aple, aple.mc
  • R
    R 4.1.0 released · 2021-05-18
  • 1.1-8
    record
    2021-05-03 · diff ↗ ·
    removed 70 exports
    print.stsls, summary.stsls, print.summary.stsls, residuals.stsls, coef.stsls, deviance.stsls, impacts.stsls, residuals.gmsar, deviance.gmsar, coef.gmsar, fitted.gmsar, print.gmsar, summary.gmsar, print.summary.gmsar, impacts.gmsar, LR1.lagmess, coef.lagmess, deviance.lagmess, fitted.lagmess, impacts.lagmess, logLik.lagmess, print.lagmess, print.summary.lagmess, residuals.lagmess, summary.lagmess, print.SFResult, fitted.SFResult, print.ME_res, fitted.ME_res, LR.sarlm and 40 more
    added 6 exports
    bptest.Sarlm, LR.Sarlm, LR1.Sarlm, Wald1.Sarlm, LR1.Spautolm, LR1.Lagmess
  • R
    R 4.0.0 released · 2020-04-24
  • 1.1-5
    record
    2019-12-02 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.1-3
    record
    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

Cite

Cite this package

Run in R for the authors' entry:

citation("spatialreg")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.3390/math9111276, 10.18637/jss.v063.i18, 10.1111/gean.12008.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for spatialreg version 1.4-3 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy