Spatial Temporal Aggregated Predictor Models via 'stan'

Estimates previously compiled stap regression models using the 'rstan' package. Users specify models via a custom R syntax with a formula and data.frame plus additional arguments for priors.

Build Status License: GPL v3

Spatial-Temporal Aggregated Predictor Models Implemented in R

This is an R package that fits spatial temporal aggregated predictor models
using Stan (via the rstan package) for the back-end estimation. The primary target audience is researchers interested in the effect of built environment features (BEFs) on human health, though other applications are possible. See the package's website for an introduction.


Development Version

To install the current development version from GitHub, first make sure that you can install the rstan package and C++ toolchain by following these instructions.

Once rstan is successfully installed, you can install rstap from GitHub using the devtools package by executing the following in R:

if (!require(devtools)) {

Note that vignettes for this package are separately available from the rstap website.

If installation fails, please let us know by filing an issue.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.0.3 by Adam Peterson, a year ago

Report a bug at

Browse source code at

Authors: Adam Peterson [aut, cre]

Documentation:   PDF Manual  

GPL (>= 3) license

Imports abind, bayesplot, ggplot2, lme4, loo, Matrix, nlme, rstan, rstantools, stats, utils, pracma, dplyr

Depends on Rcpp, methods

Suggests testthat, digest, knitr, rmarkdown, pkgdown, fields

Linking to StanHeaders, rstan, BH, Rcpp, RcppEigen

System requirements: GNU make

See at CRAN