Command for generating model moments in MATLAB

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Command for generating model moments in MATLAB

Postby Thassia » Thu Jul 18, 2013 2:25 am

Hello,

I am trying to generate the moments for an economic model in Dynare. I have the model solution in Matlab however I need help using the Matlab solution to generate model moments in Dynare.


In other words how can one incorporate
MATLAB command
[G,C0,M,fmat,fwt,ywt,gev,eu] = gensys(G0,G1,CC,Psi,Pi);

into the stoch_simul command
eg stoch_simul(order=1,irf=40) y_h c_h i_h b_h ;
in DYNARE

Any help would be appreciated!!
Thassia
 
Posts: 4
Joined: Wed Jul 17, 2013 11:44 pm

Re: Command for generating model moments in MATLAB

Postby jpfeifer » Thu Jul 18, 2013 6:34 am

You could do it, but the programming costs are most probably prohibitive. If you already have the model solution in non-Dynare form I would recommend that you use the state-space form to generate the model moments yourself. You can basically find the formulas in Kim, Kim, Schaumburg. Sims.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Command for generating model moments in MATLAB

Postby Thassia » Tue Jul 23, 2013 4:35 pm

Thank You.

"CALCULATING AND USING SECOND ORDER ACCURATE SOLUTIONS OF DISCRETE TIME DYNAMIC EQUILIBRIUM MODELS"
Correct?

Regards.
Thassia
 
Posts: 4
Joined: Wed Jul 17, 2013 11:44 pm

Re: Command for generating model moments in MATLAB

Postby jpfeifer » Tue Jul 23, 2013 6:02 pm

------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Command for generating model moments in MATLAB

Postby Thassia » Wed Jul 31, 2013 8:20 pm

Which formulas or equation number are you referring to specifically?
Thassia
 
Posts: 4
Joined: Wed Jul 17, 2013 11:44 pm

Re: Command for generating model moments in MATLAB

Postby Thassia » Wed Aug 07, 2013 4:37 am

jpfeifer wrote:You could do it, but the programming costs are most probably prohibitive. If you already have the model solution in non-Dynare form I would recommend that you use the state-space form to generate the model moments yourself. You can basically find the formulas in Kim, Kim, Schaumburg. Sims.


Jpfeifer, I still have not solved this problem. Could you help explain what you mean by use the state form to generate the model moments? I read the paper that you suggested and I think the equations of interest are (39) -(42) but I do not know how to use them to generate the moments.

Regards,

Thassia
Thassia
 
Posts: 4
Joined: Wed Jul 17, 2013 11:44 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests