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

generateIRF Sigma #11

Open
alexsuarez94 opened this issue Feb 9, 2019 · 3 comments
Open

generateIRF Sigma #11

alexsuarez94 opened this issue Feb 9, 2019 · 3 comments

Comments

@alexsuarez94
Copy link

Hi, first I'd like to say thanks for this package. I have found in the issue #5 the function you design for generateIRF. Nevertheless I have doubts about how to extract the required arguments of the function
from a cv.BigVAR() object.

Any clarification regarding what is the meaning of the arguments and how to extract them one the model is fitted would be a great help!

generateIRF <- function(Phi,Sigma,n,k,p,Y0){}

Thanks you so much for developing such an amazing package!

@wbnicholson
Copy link
Owner

wbnicholson commented Feb 16, 2019

Here's an example usage:

library(expm)
library(BigVAR)

data(Y)

Model1Results=cv.BigVAR(constructModel(Y,p=4,gran=c(50,10),struct="Basic"))
                                        # Phi k x kp coefficient matrix
                                        # sigma kxk residual covariance matrix
                                        # n number of time steps to run IRF
                                        # p lag order
                                        # k number of series
                                       # Y0: k dimensional vector reflecting initialization of the IRF 
IRFS <- generateIRF(Phi=Model1Results@betaPred[,2:ncol(Model1Results@betaPred)],Sigma=cov(Model1Results@resids),n=10,3,p=4,Y0=c(0,.01,0))   

@chryssaka
Copy link

Hi,

Thanks for a very handy package!

I would like to ask if there is a way to extract standard errors (or even upper /low bounds) for the impulse responses from your function you design "generateIRF".

@wbnicholson
Copy link
Owner

Sorry for the delay. We could consider implementing error bands for impulse response functions using one of the methods defined here: http://pareto.uab.es/lgambetti/VAR_Forecasting.pdf I'll think about the best way to incorporate it into the function.

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

No branches or pull requests

3 participants