Skip to content

Spatial-X (SLX) Models for Applied Researchers

0packages depend
2.1Kdownloads / year
61.1%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.1.1

CRAN resubmission addressing feedback from the initial submission.

  • Added \value sections to slx-tidiers.Rd (documenting the tibble columns returned by tidy.slx() and glance.slx()) and slx_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 in slx-tidiers, slx_effects, slx_plot_effects, and slx_plot_shock are now unwrapped and run against the bundled defense_burden dataset. The slx_weights example now runs a custom-matrix case by default; the optional sf-based contiguity example is wrapped in \donttest{} and guarded by requireNamespace().

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.1 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK6 OK2026-04-23
Advisories

none known

Documentation

In release 0.1.1
READMEYes · 351 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 0.1.1Citation fileYes · cites a publication
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

2.1K
CRAN downloads in the past year
Rank #16,044 · ~6/day · ~174/mo
Daily download trend is not available in this view yet.
25030 days
78090 days
2.1K1 year
Compare downloads with other packages →
Also on36 r2u2 autocran

Repository

1Stars
0Forks
0Open issues
0Open PRs
1Releases
18Commits
1Commit identities
18 commits · Last activity 2026-04-27 · 0% stars, 30d
Responsiveness
not measured

Stars over time

2026-04-21 · 12026-07-07 · 1
PracticesBeta

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.

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 (3)
pkgdown

GitHub Pages site last deployed 2026-04-27 · The repository has a site deploy workflow

Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Show all practicesHide 1 practice
Research and citation (1)
CITATION.cff
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-04-13
    Seen in the repository: .claude
    Named in .Rbuildignore: .claude
    Commits: at least 5 crediting it in the message
Models named in its commits
  • Claude Opus 4.74 commits · Apr 2026
  • Claude Opus 4.61 commit · Apr 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

Installing slxr adds 24 packages (18 with compiled code, 33 MB of source tarballs). Heaviest: sf 9.3 MB, spdep 4.5 MB, sp 4.3 MB.

Depends (1)
R >= 4.1.0
Imports (7)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.1 (2026)
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.1Latest
    2026-04-22 · current release
  • R
    R 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.

APA

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

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.

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