make_X_innovations: Extract X innovations from VAR model
Description
Computes structural shocks (innovations) for X factors by fitting a VAR model
and extracting residuals.
Usage
make_X_innovations(results, p = NULL)
Value
List with components:
shocks
Matrix (T x Kx) of structural shocks with NA padding for initial lags.
var_fit
Fitted VAR model object.
lag_used
Integer lag order used.
Arguments
- results
List. Output from main analysis.
- p
Integer. VAR lag order. If NULL, uses order from DFM estimation.