Package: SpatialInference 0.1.0

Alexander Lehner

SpatialInference: Tools for Statistical Inference with Geo-Coded Data

Fast computation of Conley (1999) <doi:10.1016/S0304-4076(98)00084-0> spatial heteroskedasticity and autocorrelation consistent (HAC) standard errors for linear regression models with geo-coded data, with a fast C++ implementation by Christensen, Hartman, and Samii (2021) <doi:10.1017/S0020818321000187>. Performance-critical distance calculations, kernel weighting, and variance component accumulation are implemented in C++ via 'Rcpp' and 'RcppArmadillo'. Includes tools for estimating the spatial correlation range from covariograms and correlograms following the bandwidth selection method proposed in Lehner (2026) <doi:10.48550/arXiv.2603.03997>, and diagnostic visualizations for bandwidth selection.

Authors:Alexander Lehner [aut, cre]

SpatialInference_0.1.0.tar.gz
SpatialInference_0.1.0.tar.gz(r-4.7-arm64)SpatialInference_0.1.0.tar.gz(r-4.7-x86_64)SpatialInference_0.1.0.tar.gz(r-4.6-arm64)SpatialInference_0.1.0.tar.gz(r-4.6-x86_64)
SpatialInference_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
SpatialInference/json (API)
NEWS

# Install 'SpatialInference' in R:
install.packages('SpatialInference', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/axlehner/spatialinference/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

openblascpp

2.70 score 190 downloads 16 exports 24 dependencies

Last updated from:0c9e7f5f8f. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK149
linux-devel-x86_64OK182
source / vignettesOK270
linux-release-arm64OK179
linux-release-x86_64OK187
wasm-releaseOK154

Exports::=%>%Bal_XeeXhCcompute_conley_lfeconley_SEcoords_as_columnscovgm_rangeDistMatextract_corr_rangegravity_centroidgrid_FEinverseu_plot_conleyrangelm_sacTimeDistXeeXhCXeeXhC_Lg

Dependencies:classclassIntclidata.tableDBIe1071glueKernSmoothlifecyclemagrittrMASSpillarpkgconfigproxyRcppRcppArmadillorlangs2sftibbleunitsutf8vctrswk

Bandwidth Selection and Conley Spatial HAC Standard Errors

Rendered fromspatial_HAC.Rmdusingknitr::knitron May 24 2026.

Last update: 2026-03-25
Started: 2026-03-25