Package: sectorgap 0.1.0
sectorgap: Consistent Economic Trend Cycle Decomposition
Determining potential output and the output gap - two inherently unobservable variables - is a major challenge for macroeconomists. 'sectorgap' features a flexible modeling and estimation framework for a multivariate Bayesian state space model identifying economic output fluctuations consistent with subsectors of the economy. The proposed model is able to capture various correlations between output and a set of aggregate as well as subsector indicators. Estimation of the latent states and parameters is achieved using a simple Gibbs sampling procedure and various plotting options facilitate the assessment of the results. For details on the methodology and an illustrative example, see Streicher (2024) <https://www.research-collection.ethz.ch/handle/20.500.11850/653682>.
Authors:
sectorgap_0.1.0.tar.gz
sectorgap_0.1.0.zip(r-4.6)sectorgap_0.1.0.zip(r-4.5)
sectorgap_0.1.0.tgz(r-4.6-any)sectorgap_0.1.0.tgz(r-4.5-any)
sectorgap_0.1.0.tar.gz(r-4.6-any)sectorgap_0.1.0.tar.gz(r-4.5-any)
sectorgap_0.1.0.tgz(r-4.5-emscripten)
sectorgap.pdf |sectorgap.html✨
sectorgap/json (API)
| # Install 'sectorgap' in R: |
| install.packages('sectorgap', repos = c('https://sinast3000.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/sinast3000/sectorgap/issues
- data_ch - Swiss data set
- recessions_ch - Swiss recessions
- recessions_us - US recessions
Last updated from:b600a41e81. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 157 | ||
| source / vignettes | OK | 163 | ||
| linux-release-x86_64 | OK | 156 | ||
| macos-devel-arm64 | OK | 182 | ||
| macos-release-arm64 | OK | 162 | ||
| windows-devel | OK | 130 | ||
| windows-release | OK | 117 | ||
| windows-oldrel | OK | 104 | ||
| wasm-release | OK | 107 |
Exports:compute_mcmc_resultsdefine_ssmodelestimate_ssmodelinitialize_priorinitialize_settingsis.settingsprepate_datatransform_results
Dependencies:clicodacpp11dplyrfarvergenericsggplot2gluegtableisobandKFASlabelinglatticelifecyclemagrittrMASSMatrixMatrixModelsmcmcMCMCpackpillarpkgconfigpurrrquantregR6RColorBrewerrlangS7scalesSparseMstringistringrsurvivaltempdisaggtibbletidyrtidyselectutf8vctrsviridisLitewithrzoo
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Results for sampled parameters and states | compute_mcmc_results |
| Swiss data set | data_ch |
| State space model | define_ssmodel |
| Bayesian estimation via Gibbs sampling | estimate_ssmodel |
| Prior distribution | initialize_prior |
| Model settings | initialize_settings |
| Settings object validity check | is.settings |
| Plots of results | plot.ss_fit |
| Input data | prepate_data |
| Print 'prior' object | print.prior |
| Print 'settings' object | print.settings |
| Print 'ss_fit' object. | print.ss_fit |
| Print 'ss_model' object | print.ss_model |
| Swiss recessions | recessions_ch |
| US recessions | recessions_us |
| Format results | transform_results |
