Skip to contents

Estimation

Estimate impulse response functions via IV local projections or a proxy SVAR

hetiv()
Estimate impulse responses via heteroskedasticity-based IV local projections
proxyiv()
Estimate impulse responses via proxy-IV local projections
recols()
Estimate impulse responses via recursive (Cholesky) local projections
svariv()
Estimate impulse responses via a proxy SVAR (SVAR-IV)

Weak instrument test

Test for weak instruments (Lewis-Mertens 2025)

gweakivtest()
Generalised weak instrument test

Shock extraction and IRF computation

predict_shocks()
Extract monetary policy shocks via Kalman filter
prediction_corr()
Squared correlation of the predicted shocks with the true shocks
computeirf()
Compute impulse response functions for a VAR(P)

Proxies and model specification

Construct surprise factors and choose the lag length

gss_pca() print(<gss_pca>)
Monetary policy surprise factors from a panel of financial market series
lag_opt()
Optimal lag length of a VAR

Plotting

plotirf()
Plot impulse responses from one or several estimation approaches
plot2irf()
Plot and compare impulse responses from two estimation approaches
plotpval()
Plot p-values across horizons
arrangeirf()
Arrange impulse response plots into one figure per shock
plotseries()
Plot one or several series in one panel

Simulation

simulatedata()
Simulate VAR data with heteroskedastic shocks and given parameters

Utilities

normalize()
Normalize a time series
logdiff()
Log-difference transformation
firstdiff()
First-difference transformation
filllinear()
Linearly interpolate gaps in a data frame
rescale_to_match()
Rescale a series to match the mean and variance of another series