Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impulse Reponse Functions #6

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open

Impulse Reponse Functions #6

wants to merge 33 commits into from

Conversation

haansn08
Copy link

@haansn08 haansn08 commented Dec 5, 2024

A basic implementation for computing and plotting impulse responses. Example usage:

train_data <- 100 * usmacro_growth[,c("GDPC1", "PCECC96", "GPDIC1", "AWHMAN", "GDPCTPI", "CES2000000008x", "FEDFUNDS", "GS10", "EXUSUKx", "S&P 500")]
prior_sigma <- specify_prior_sigma(data=train_data, type="cholesky")
mod <- bvar(train_data, lags=2L, draws=2000, prior_sigma=prior_sigma)
ir <- irf(mod, shock=c(0,0,0,0,0,0,1,0,0,0))
plot(ir, n_col=2)

Stefan Haan added 30 commits December 3, 2024 21:21
For more information see
"Structural Vector Autoregressions: Theory of Identification and Algorithms for Inference"
RUBIO-RAMÍREZ, WAGGONER, ZHA
doi: 10.1111/j.1467-937X.2009.00578.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant