Page 1 of 1

How to obtain exogenous variables?

PostPosted: Tue Aug 11, 2015 12:15 pm
by xuyongdeng
Hi, suppose I have data y_t. Shocks are denoted as z_t. The exogenous variables are e_t. I have all the parameters. My questions is how can I obtain the exogenous variables e_t from y_t and parameters. As in my programme, I want to bootstrap the data from exogenous variables. Thanks in advance.

Re: How to obtain exogenous variables?

PostPosted: Tue Aug 11, 2015 4:41 pm
by jpfeifer
Shocks are exogenous variables, so I don't understand what you want. My guess is you want to run the smoother in order to obtain smoothed shocks. You may be looking for the calib_smoother command. See https://github.com/DynareTeam/dynare/blob/master/tests/fs2000/fs2000_calib.mod for an example.

Re: How to obtain exogenous variables?

PostPosted: Tue Aug 11, 2015 5:43 pm
by xuyongdeng
Hi, shocks are following AR process. Exogenous variables are innovations from the shocks AR processes. I want to get the shocks or these innovations from observed data. Any suggestions?

Re: How to obtain exogenous variables?

PostPosted: Wed Aug 12, 2015 5:42 am
by jpfeifer
As I wrote above: use the
Code: Select all
calib_smoother

Re: How to obtain exogenous variables?

PostPosted: Wed Aug 12, 2015 9:36 am
by xuyongdeng
Hi jpfeifer, thank you for your reply. I understand that you have to have the shocks standard deviations if you want to use calib_smoother. But if I only have observed variables and model parameters and no shock standard deviations, can I still use ''calib_smoother" to get unobserved variables and shocks?
Thanks a lot for your help.

Re: How to obtain exogenous variables?

PostPosted: Wed Aug 12, 2015 11:08 am
by jpfeifer
In that case, you need to estimate the standard deviations of the exogenous shock processes. You need those numbers for the Kalman smoother