Adapted from Jurado, Ludvigson, Ng (2015) using code supplied by Serena Ng at:
- Clean and suitably transform data.
import_data.m
- Estimate number of latent factors in data and extract via PCA. Forecast macro variables and save prediction errors.
factors_forecast.m
- Estimate latent stochastic volatility in prediction errors
svydraws.R
svfdraws.R
- Compute uncertainty in variables and build aggregate index
uncertainty.m