stLMM: Bayesian Spatial and Space-Time Linear Mixed Models for Small-Area Ecological Estimation
arXiv:2607.02836
Abstract
Ecological monitoring programs often need estimates for areas and periods with few observations. Data may be available as measurements at known locations, measurements identified only by area, or area summaries. These differences in spatial and temporal support require models that connect available observations to the quantities and reporting scales of interest. stLMM is an R package for Bayesian linear mixed models that addresses these needs through a common formula interface for grouped, temporal, point-referenced, areal, and space-time effects, including coefficients that vary across these supports. It accommodates individual measurements and direct estimates with sampling variances, and predicts at unsampled locations or reporting units. Ecological small-area estimation motivates the package, while its model components support broader ecological applications. A shared sparse-precision implementation underlies the model terms. Structured latent effects are collapsed during parameter updates, then recovered for fitted values, diagnostics, prediction, and posterior summaries. This gives users one posterior-draw workflow for propagating uncertainty from model fitting through prediction and aggregation. An illustrative simulation connects point-referenced observations, point observations by area, and direct area estimates to a common prediction target. Timing and memory measurements for larger versions of these settings illustrate how computational demands differ between point-referenced and areal models. The package is also demonstrated with a Washington county biomass example, using national forest inventory data and tree canopy cover to estimate county-year biomass means. An extended article series provides reproducible source code, data, diagnostics, and related model variants.