Difference Between Dynare and Dynare++?

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.

Difference Between Dynare and Dynare++?

Postby zhaoningru » Tue Sep 23, 2014 3:03 am

According to literature, the linearization in Dynare(order=1 in stoch_simul) should have the same result with 1-order approximation in Dynare++. However, when I simulated a simple RBC model in DYNARE and DYNARE++, I got huge differences between variances(or standard variances) of variables in DYNARE and those in DYNARE++. Can anybody give me a reasonable explanation for this phenomena? Thanks for your help!
zhaoningru
 
Posts: 21
Joined: Sat Mar 29, 2014 8:16 pm

Re: Difference Between Dynare and Dynare++?

Postby jpfeifer » Tue Sep 23, 2014 5:00 am

Please provide the mod-files for both.
------------
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: Difference Between Dynare and Dynare++?

Postby zhaoningru » Tue Sep 23, 2014 5:11 am

I have attached both DYNARE code and DYNARE++ code here. Thanks for your reply.
Attachments
RBCDYNARE.mod
(582 Bytes) Downloaded 133 times
zhaoningru
 
Posts: 21
Joined: Sat Mar 29, 2014 8:16 pm

Re: Difference Between Dynare and Dynare++?

Postby zhaoningru » Tue Sep 23, 2014 5:12 am

DYNARE++ code.
Attachments
RBCDYNARE++.mod
(491 Bytes) Downloaded 175 times
zhaoningru
 
Posts: 21
Joined: Sat Mar 29, 2014 8:16 pm

Re: Difference Between Dynare and Dynare++?

Postby jpfeifer » Tue Sep 23, 2014 9:16 am

You are using different orders, the HP-filter in one case, and you are using a variance of 0.01 in one case and of 0.01^2 in the other one.
------------
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: Difference Between Dynare and Dynare++?

Postby zhaoningru » Tue Sep 23, 2014 3:29 pm

I have corrected what you mentioned. The variances now are close to each other. By the way, how to implement HP-FILTER in dynare++? By using the dynare_simul to get the simulated data and then applies HP-FILTER to the simulated data?
zhaoningru
 
Posts: 21
Joined: Sat Mar 29, 2014 8:16 pm

Re: Difference Between Dynare and Dynare++?

Postby jpfeifer » Wed Sep 24, 2014 11:44 am

Yes. Dynare++ does not support the HP-filter. You need to apply it manually to the simulated series.
------------
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: Difference Between Dynare and Dynare++?

Postby zhaoningru » Thu Sep 25, 2014 1:30 am

Thanks, got it!
zhaoningru
 
Posts: 21
Joined: Sat Mar 29, 2014 8:16 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests

cron