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.5)sectorgap_0.1.0.zip(r-4.4)sectorgap_0.1.0.zip(r-4.3)
sectorgap_0.1.0.tgz(r-4.4-any)sectorgap_0.1.0.tgz(r-4.3-any)
sectorgap_0.1.0.tar.gz(r-4.5-noble)sectorgap_0.1.0.tar.gz(r-4.4-noble)
sectorgap_0.1.0.tgz(r-4.4-emscripten)sectorgap_0.1.0.tgz(r-4.3-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 10 months agofrom:b600a41e81. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 23 2024 |
R-4.5-win | OK | Nov 23 2024 |
R-4.5-linux | OK | Nov 23 2024 |
R-4.4-win | OK | Nov 23 2024 |
R-4.4-mac | OK | Nov 23 2024 |
R-4.3-win | OK | Nov 23 2024 |
R-4.3-mac | OK | Nov 23 2024 |
Exports:compute_mcmc_resultsdefine_ssmodelestimate_ssmodelinitialize_priorinitialize_settingsis.settingsprepate_datatransform_results
Dependencies:clicodacolorspacecpp11dplyrfansifarvergenericsggplot2gluegtableisobandKFASlabelinglatticelifecyclemagrittrMASSMatrixMatrixModelsmcmcMCMCpackmgcvmunsellnlmepillarpkgconfigpurrrquantregR6RColorBrewerrlangscalesSparseMstringistringrsurvivaltempdisaggtibbletidyrtidyselectutf8vctrsviridisLitewithrzoo
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 |