dsp: Dynamic Shrinkage Process and Change Point Detection

Provides efficient Markov chain Monte Carlo (MCMC) algorithms for dynamic shrinkage processes, which extend global-local shrinkage priors to the time series setting by allowing shrinkage to depend on its own past. These priors yield locally adaptive estimates, useful for time series and regression functions with irregular features. The package includes full MCMC implementations for trend filtering using dynamic shrinkage on signal differences, producing locally constant or linear fits with adaptive credible bands. Also included are models with static shrinkage and normal-inverse-Gamma priors for comparison. Additional tools cover dynamic regression with time-varying coefficients and B-spline models with shrinkage on basis differences, allowing for flexible curve-fitting with unequally spaced data. Some support for heteroscedastic errors, outlier detection, and change point estimation. Methods in this package are described in Kowal et al. (2019) <doi:10.1111/rssb.12325>, Wu et al. (2024) <doi:10.1080/07350015.2024.2362269>, Schafer and Matteson (2024) <doi:10.1080/00401706.2024.2407316>, and Cho and Matteson (2024) <doi:10.48550/arXiv.2408.11315>.

Version: 1.2.0
Depends: R (≥ 4.1.0)
Imports: coda, fda, graphics, grDevices, Matrix, MCMCpack, methods, msm, pgdraw, Rcpp, RcppZiggurat, spam, progress, stats, stochvol, BayesLogit, truncdist, mgcv, purrr, rlang, lifecycle, glue
LinkingTo: Rcpp, RcppArmadillo, RcppEigen
Suggests: ggplot2, testthat (≥ 3.0.0)
Published: 2025-08-19
DOI: 10.32614/CRAN.package.dsp
Author: Daniel R. Kowal [aut, cph], Haoxuan Wu [aut], Toryn Schafer ORCID iD [aut, cre], Jason B. Cho [aut], David S. Matteson [aut]
Maintainer: Toryn Schafer <toryn27 at gmail.com>
BugReports: https://github.com/schafert/dsp/issues
License: GPL (≥ 3)
URL: https://github.com/schafert/dsp
NeedsCompilation: yes
Materials: README, NEWS
CRAN checks: dsp results

Documentation:

Reference manual: dsp.html , dsp.pdf

Downloads:

Package source: dsp_1.2.0.tar.gz
Windows binaries: r-devel: not available, r-release: dsp_1.2.0.zip, r-oldrel: dsp_1.2.0.zip
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): dsp_1.2.0.tgz, r-oldrel (x86_64): dsp_1.2.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=dsp to link to this page.