Page 1 of 1

I just need the irfs of some variables

PostPosted: Thu May 19, 2016 9:47 am
by psbe20
Being a new user of the Dynare program, I am very sorry to ask if there is anyway we could specify directly in Matlab what variable we want to show the irfs. I have tried cutting and pasting, but the results are not as neat as I wished. Right now, the only thing I have left to finish my seminar paper is to export only a set of the irfs to Latex, and I will be done.


Any suggestions ?

Re: I just need the irfs of some variables

PostPosted: Thu May 19, 2016 12:21 pm
by jpfeifer
After stoch_simul and estimation you can provide the names of the variables you want IRFs for. Alternatively, the IRFs are stored in oo_.irfs and you can plot them with Matlab.

Re: I just need the irfs of some variables

PostPosted: Fri May 20, 2016 4:02 am
by psbe20
Could you please be more specific ? I have been looking for the commands, but nothing is there to be found.

1. after " stoch_simul; " Is it that you meant I put all the interested variables in the argument like this: stoch_simul(x1,x2,x3); ?
2. I cannot find the oo_.irfs in my working directory. Where does the dynare really save it ?

Thanks in advance, and my apologies for this persistence.


Best

Re: I just need the irfs of some variables

PostPosted: Mon May 23, 2016 11:16 pm
by xuz
psbe20 wrote:Could you please be more specific ? I have been looking for the commands, but nothing is there to be found.

1. after " stoch_simul; " Is it that you meant I put all the interested variables in the argument like this: stoch_simul(x1,x2,x3); ?
2. I cannot find the oo_.irfs in my working directory. Where does the dynare really save it ?

Thanks in advance, and my apologies for this persistence.


Best


1. one example is:

stock_simul(order =1, irf=40) y l;

which only plots the 40-period irf of y and l.

2. In your matlab Workspace, you can see "oo_", which is a 1 by 1 struct, double click it, then you can see one of the fields is "irfs", double click it.