Package: dsp 1.8.0
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 (2026) <doi:10.1080/07350015.2025.2602846>.
Authors:
dsp_1.8.0.tar.gz
dsp_1.8.0.zip(r-4.7-x86_64)dsp_1.8.0.zip(r-4.7-arm64)dsp_1.8.0.zip(r-4.6-x86_64)dsp_1.8.0.zip(r-4.6-arm64)dsp_1.8.0.zip(r-4.5-x86_64)
dsp_1.8.0.tgz(r-4.6-x86_64)dsp_1.8.0.tgz(r-4.6-arm64)dsp_1.8.0.tgz(r-4.5-x86_64)dsp_1.8.0.tgz(r-4.5-arm64)
dsp_1.8.0.tar.gz(r-4.7-arm64)dsp_1.8.0.tar.gz(r-4.7-x86_64)dsp_1.8.0.tar.gz(r-4.6-arm64)dsp_1.8.0.tar.gz(r-4.6-x86_64)
dsp_1.8.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
dsp/json (API)
| # Install 'dsp' in R: |
| install.packages('dsp', repos = c('https://schafert.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/schafert/dsp/issues
Last updated from:0bd18067e0. Checks:15 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 183 | ||
| linux-devel-x86_64 | OK | 194 | ||
| source / vignettes | OK | 214 | ||
| linux-release-arm64 | OK | 173 | ||
| linux-release-x86_64 | OK | 227 | ||
| macos-release-arm64 | OK | 206 | ||
| macos-release-x86_64 | OK | 300 | ||
| macos-oldrel-arm64 | OK | 201 | ||
| macos-oldrel-x86_64 | OK | 397 | ||
| windows-devel-arm64 | OK | 301 | ||
| windows-devel-x86_64 | OK | 224 | ||
| windows-release-arm64 | OK | 276 | ||
| windows-release-x86_64 | OK | 141 | ||
| windows-oldrel-x86_64 | OK | 195 | ||
| wasm-release | OK | 121 |
Exports:as.mcmccredible_bandsDICdsp_fitdsp_specget_specis.dsppar_namessimRegressionsimUnivariate
Dependencies:ashaskpassBayesLogitcliclustercodacolorspacecpp11crayoncurldeSolvedotCall64evdexpmfarverfdafdsFNNgenericsggplot2gluegmpgtablehdrcdehmshttrisobandjsonlitekernlabKernSmoothkslabelinglatticelifecyclelocfitmagrittrMASSMatrixMatrixModelsmclustmcmcMCMCpackmgcvmimemsmmulticoolmvtnormnlmeopensslpcaPPpgdrawpillarpkgconfigpracmaprettyunitsprogresspurrrquantregR6rainbowRColorBrewerRcppRcppArmadilloRcppEigenRcppGSLRcppZigguratrlangS7scalesspamSparseMstochvolsurvivalsystibbletruncdistutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Coerce a fitted dsp model to an mcmc object | as.mcmc.dsp |
| Simultaneous credible bands and band scores | credible_bands print.dsp_bands |
| MCMC Sampler for Models with Dynamic Shrinkage Processes | dsp_fit print.dsp |
| Model Specification | dsp_spec print.dsp_spec |
| Accessor functions for fitted dsp models | DIC DIC.dsp dsp-accessors fitted.dsp get_spec nobs.dsp par_names |
| Dynamic Shrinkage Process (dsp) Object | dsp-class is.dsp |
| Plot posterior summaries from a fitted dsp model | plot.dsp |
| Predict changepoints from the output of ABCO | predict.dsp |
| Print a summary of a fitted dsp model | print.summary.dsp |
| Simulate noisy observations from a dynamic regression model | simRegression |
| Generate univariate signals of different type | simUnivariate |
| Summarize a fitted dsp model | summary.dsp |
