Package: atRisk 0.2.0

Quentin Lajaunie
atRisk: At-Risk
The at-Risk (aR) approach is based on a two-step parametric estimation procedure that allows to forecast the full conditional distribution of an economic variable at a given horizon, as a function of a set of factors. These density forecasts are then be used to produce coherent forecasts for any downside risk measure, e.g., value-at-risk, expected shortfall, downside entropy. Initially introduced by Adrian et al. (2019) <doi:10.1257/aer.20161923> to reveal the vulnerability of economic growth to financial conditions, the aR approach is currently extensively used by international financial institutions to provide Value-at-Risk (VaR) type forecasts for GDP growth (Growth-at-Risk) or inflation (Inflation-at-Risk). This package provides methods for estimating these models. Datasets for the US and the Eurozone are available to allow testing of the Adrian et al. (2019) model. This package constitutes a useful toolbox (data and functions) for private practitioners, scholars as well as policymakers.
Authors:
atRisk_0.2.0.tar.gz
atRisk_0.2.0.tar.gz(r-4.7-any)atRisk_0.2.0.tar.gz(r-4.6-any)
atRisk_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
atRisk/json (API)
| # Install 'atRisk' in R: |
| install.packages('atRisk', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
- data_euro - Historical data for the eurozone (GDP and Financial Conditions) from 2008:Q4 to 2022:Q3
- data_param_histo_US - Historical parameters (skew-t) for the US from 1973:Q1 to 2020:Q1
- data_US - Historical data for the US (GDP and Financial Conditions) from 1973:Q1 to 2020:Q1
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:b9aa50d3a0. Checks:4 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 137 | ||
| source / vignettes | OK | 175 | ||
| linux-release-x86_64 | OK | 143 | ||
| wasm-release | OK | 101 |
Exports:f_compile_quantilef_distribf_ESf_histo_RMf_nadaraya_watson_quantilef_plot_distrib_2Df_plot_distrib_3Df_VaR
Dependencies:clicpp11dfoptimfarverggplot2ggridgesgluegtableisobandlabelinglatticelifecycleMASSMatrixMatrixModelsmnormtnumDerivquantregR6RColorBrewerrlangS7scalessnSparseMsurvivalvctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Historical data for the eurozone (GDP and Financial Conditions) from 2008:Q4 to 2022:Q3 | data_euro |
| Historical parameters (skew-t) for the US from 1973:Q1 to 2020:Q1 | data_param_histo_US |
| Historical data for the US (GDP and Financial Conditions) from 1973:Q1 to 2020:Q1 | data_US |
| Estimation of quantiles | f_compile_quantile |
| Distribution | f_distrib |
| Expected Shortfall | f_ES |
| Historical parameters | f_histo_RM |
| Estimation of quantiles using the Nadaraya-Watson estimator with a product kernel | f_nadaraya_watson_quantile |
| Plot of historical distributions in 2D | f_plot_distrib_2D |
| Plot of historical distributions in 3D | f_plot_distrib_3D |
| Value-at-Risk | f_VaR |