Package: bayesdfa 1.3.5

Eric J. Ward

bayesdfa: Bayesian Dynamic Factor Analysis (DFA) with 'Stan'

Implements Bayesian dynamic factor analysis with 'Stan'. Dynamic factor analysis is a dimension reduction tool for multivariate time series. 'bayesdfa' extends conventional dynamic factor models in several ways. First, extreme events may be estimated in the latent trend by modeling process error with a student-t distribution. Second, alternative constraints (including proportions are allowed). Third, the estimated dynamic factors can be analyzed with hidden Markov models to evaluate support for latent regimes.

Authors:Eric J. Ward [aut, cre], Sean C. Anderson [aut], Luis A. Damiano [aut], Michael J. Malick [aut], Philina A. English [aut], Mary E. Hunsicker, [ctb], Mike A. Litzow [ctb], Mark D. Scheuerell [ctb], Elizabeth E. Holmes [ctb], Nick Tolimieri [ctb], Trustees of Columbia University [cph]

bayesdfa_1.3.5.tar.gz
bayesdfa_1.3.5.zip(r-4.7)bayesdfa_1.3.5.zip(r-4.6)bayesdfa_1.3.5.zip(r-4.5)
bayesdfa_1.3.5.tgz(r-4.6-x86_64)bayesdfa_1.3.5.tgz(r-4.6-arm64)bayesdfa_1.3.5.tgz(r-4.5-x86_64)bayesdfa_1.3.5.tgz(r-4.5-arm64)
bayesdfa_1.3.5.tar.gz(r-4.7-arm64)bayesdfa_1.3.5.tar.gz(r-4.7-x86_64)bayesdfa_1.3.5.tar.gz(r-4.6-arm64)bayesdfa_1.3.5.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
bayesdfa/json (API)

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

Bug tracker:https://github.com/fate-ewi/bayesdfa/issues

Pkgdown/docs site:https://fate-ewi.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

7.94 score 29 stars 103 scripts 1.0k downloads 21 exports 56 dependencies

Last updated from:4687b27746. Checks:12 OK, 1 FAIL. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK500
linux-devel-x86_64OK501
source / vignettesOK729
linux-release-arm64OK477
linux-release-x86_64OK482
macos-release-arm64OK296
macos-release-x86_64OK798
macos-oldrel-arm64OK334
macos-oldrel-x86_64OK751
windows-develOK682
windows-releaseOK567
windows-oldrelOK592
wasm-releaseFAIL159

Exports:dfa_cvdfa_fitteddfa_loadingsdfa_trendsfind_dfa_trendsfind_inverted_chainsfind_regimesfind_swansfit_dfafit_regimesinvert_chainsis_convergedlooplot_fittedplot_loadingsplot_regime_modelplot_trendspredictedrotate_trendssim_dfatrend_cor

Dependencies:abindbackportsBHcallrcheckmateclicpp11descdistributionaldplyrfarvergenericsggplot2gluegridExtragtableinlineisobandlabelinglatticelifecycleloomagrittrMatrixmatrixStatsmgcvnlmenumDerivpillarpkgbuildpkgconfigplyrposteriorprocessxpsQuickJSRR6RColorBrewerRcppRcppEigenRcppParallelreshape2rlangrstanS7scalesStanHeadersstringistringrtensorAtibbletidyselectutf8vctrsviridisLitewithr

Overview of the bayesdfa package
Introduction to the DFA model | DFA model with no extreme events | DFA model with extreme events | Fitting DFA models with non-Gaussian families | Alternative loadings for DFA models | Including autoregressive (AR) or moving-average (MA) components on trends | Applying Hidden Markov Models to identify latent regimes | DFA model with weights

Last update: 2023-12-07
Started: 2023-04-20

Combining data with bayesdfa
Example

Last update: 2023-04-24
Started: 2023-04-20

Estimating process trend variability with bayesdfa
Case 1: unequal trend variability | Candidate models | Recovering loadings | Recovering trends | Summary

Last update: 2023-04-20
Started: 2023-04-20

Examples of fitting DFA models with lots of data
Data simulation | Sampling argument | Posterior optimization | Posterior approximation

Last update: 2023-04-20
Started: 2023-04-20

Examples of fitting smooth trend DFA models
Data simulation | Estimating trends as B-splines | Estimating trends as P-splines | Estimating trends as Gaussian processes | Comparing approaches

Last update: 2023-04-20
Started: 2023-04-20

Examples of including covariates with bayesdfa
Notation review for DFA models | Observation covariates | Process covariates | Examples -- observation covariates | Examples -- process covariates

Last update: 2023-04-20
Started: 2023-04-20

Fitting compositional dynamic factor models with bayesdfa
2 - trend model | 3 - trend model

Last update: 2023-04-20
Started: 2023-04-20