Factor-Augmented Regression Scenarios

Provides a comprehensive framework in R for modeling and forecasting economic scenarios based on multi-level dynamic factor model. The package enables users to: (i) extract global and group-specific factors using a flexible multi-level factor structure; (ii) compute asymptotically valid confidence regions for the estimated factors, accounting for uncertainty in the factor loadings; (iii) obtain estimates of the parameters of the factor-augmented quantile regressions together with their standard deviations; (iv) recover full predictive conditional densities from estimated quantiles; (v) obtain risk measures based on extreme quantiles of the conditional densities; (vi) estimate the conditional density and the corresponding extreme quantiles when the factors are stressed.


FARS - Factor-Augmented Regression Scenarios

R-CMD-check CRAN status CRAN downloads

The FARS package provides a comprehensive framework in R for modeling and forecasting economic scenarios based on the multi-level dynamic factor model (MLDFM). The package enables users to:

  • (i) Extract global and group-specific factors using a flexible multi-level factor structure.
  • (ii) Compute asymptotically valid confidence regions for the estimated factors, accounting for uncertainty in the factor loading.
  • (iii) Obtain estimates of the parameters of the factor-augmented quantile regressions together with their standard deviations.
  • (iv) Recover full predictive conditional densities from estimated quantiles.
  • (v) Obtain risk measures based on extreme quantiles of the conditional densities.
  • (vi) estimate the conditional density and the corresponding extreme quantiles when the factors are stressed.

Installation and Usage

For detailed usage and examples please refer to the FARS Vignette. The Vignette llustrates the functionalities of the FARS package by extracting factors, estimating conditional densities, and constructing stressed scenarios in two applications:

  • (i) Aggregate inflation in Europe
  • (ii) Building growth density scenarios for the United States (replicating González-Rivera, G., Rodríguez-Caballero, C. V., & Ruiz, E., 2024. Expecting the unexpected: Stressed scenarios for economic growth. Journal of Applied Econometrics, 39(5), 926–942. https://doi.org/10.1002/jae.3060)

FARS Logo

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("FARS")

0.8.0 by Gian Pietro Bellocca, 8 months ago


https://arxiv.org/abs/2507.10679


Browse source code at https://github.com/cran/FARS


Authors: Gian Pietro Bellocca [aut, cre] , Ignacio Garrón [aut] , Vladimir Rodríguez-Caballero [aut] , Esther Ruiz [aut]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports rlang, magrittr, ggplot2, plotly, sn, nloptr, ellipse, SyScSelection, quantreg, tidyr, dplyr, forcats, MASS, reshape2, stringr, stats

Suggests R.rsp, devtools, knitr, rmarkdown, markdown, openxlsx, readxl, zoo


See at CRAN