Learn R Programming

atRisk (version 0.2.0)

At-Risk

Description

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) 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.

Copy Link

Version

Install

install.packages('atRisk')

Monthly Downloads

352

Version

0.2.0

License

GPL-3

Maintainer

Quentin Lajaunie

Last Published

January 14th, 2025

Functions in atRisk (0.2.0)

f_VaR

Value-at-Risk
f_compile_quantile

Estimation of quantiles
data_US

Historical data for the US (GDP and Financial Conditions) from 1973:Q1 to 2020:Q1
data_euro

Historical data for the eurozone (GDP and Financial Conditions) from 2008:Q4 to 2022:Q3
f_histo_RM

Historical parameters
f_distrib

Distribution
data_param_histo_US

Historical parameters (skew-t) for the US from 1973:Q1 to 2020:Q1
f_ES

Expected Shortfall
f_nadaraya_watson_quantile

Estimation of quantiles using the Nadaraya-Watson estimator with a product kernel
f_plot_distrib_2D

Plot of historical distributions in 2D
f_plot_distrib_3D

Plot of historical distributions in 3D