Spatial-X (SLX) Models for Applied Researchers
Overview
Tools for estimating, interpreting, and visualizing Spatial-X (SLX) regression models. Provides a formula-based interface with first-class support for variable-specific weights matrices, higher-order spatial lags, temporally-lagged spatial variables (TSLS), and tidy effects decomposition (direct, indirect, total). Designed to lower the barrier to SLX modeling for applied researchers who already work with 'sf' and 'lm'-style formulas. Methods follow Wimpy, Whitten, and Williams (2021) doi:10.1086/710089.
CRAN resubmission addressing feedback from the initial submission.
- Added
\valuesections toslx-tidiers.Rd(documenting the tibble columns returned bytidy.slx()andglance.slx()) andslx_sensitivity.Rd(documenting that the stub is called for its side effect of signalling an error, with a note on the planned future return value). - Removed all
\dontrun{}blocks from examples. Examples inslx-tidiers,slx_effects,slx_plot_effects, andslx_plot_shockare now unwrapped and run against the bundleddefense_burdendataset. Theslx_weightsexample now runs a custom-matrix case by default; the optionalsf-based contiguity example is wrapped in\donttest{}and guarded byrequireNamespace().
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK6 OK2026-04-23
Documentation
- Help pages
- 14 (3 internal)includes a package overview page
- Examples that run
- 100%9 run in a plain check
- Exported functions with examples
- 60%
- Documented parameters
- 98%
- Return-value docs
- 90%
- Help pages citing references
- 14%
Downloads
Repository
Stars over time
Releases over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/cwimpy/slxr on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-04-27 · The repository has a site deploy workflow
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-04-13Seen in the repository: .claudeNamed in .Rbuildignore: .claudeCommits: at least 5 crediting it in the message
- Claude Opus 4.74 commits · Apr 2026
- Claude Opus 4.61 commit · Apr 2026
Dependencies
Code & Tests
Datasets
People & History
- RR 4.6.0 released · 2026-04-24
- 0.1.1Latest2026-04-22 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-04-22
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 168 KB / 2 files
- Download size
- 372 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("slxr")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1086/710089.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.