Smets-Wouters in Dynare 4

As Dynare 4 is now the main version, this forum is now closed. Please, post
on the Dynare Help forum
Forum rules
As Dynare 4 is the current Dynare version, there forum is now close. Post new question in the Dynare Help Forum.

Smets-Wouters in Dynare 4

Postby bigbigben » Wed Dec 10, 2008 3:16 am

I try to run the code along with Smets-Wouters (2007 AER). They do have a dynare code for their model, however, dynare v4 won't run it since the error in the following line:

model(linear);

#usmodel_stst;

:
:
:
end;

I understand the symbol # allows some computation between "model" and "end", but it can't evaluate the function like usmodel_stst.m used in SW (2007). I think it works for version 3, so why remove this nice feature?
bigbigben
 
Posts: 171
Joined: Sun May 28, 2006 1:19 am

Re: Smets-Wouters in Dynare 4

Postby p.gelain » Thu Dec 11, 2008 2:16 pm

Hi bigbigben

I have the same problems with the # sign, and I am trying to figure out how to solve them. Anyway, I think that if you want to include a file (as in your case) you should use the following syntax

@#include ''usmodel_stst.m"

Put everything in one line. I do not know if you have to put or not the ; sign at the end of the line (although I think you do not have to do it).

Paolo
p.gelain
 
Posts: 61
Joined: Wed Jul 11, 2007 9:13 pm
Location: Norges Bank

Re: Smets-Wouters in Dynare 4

Postby dal » Tue Mar 03, 2009 4:28 pm

I have exactly the same problem.
It seems that, the previous version of dynare allowed to use an auxiliary m-file to define the steady state of the model in a separate (eg. usmodel_stst.m). I suppose inserting the "#" symbol is a way to say that some of the parameters envolved in the equations defining the steady state has to be estimated. Does anyone know how to proceed in dynare 4?
dal
 
Posts: 4
Joined: Tue Mar 03, 2009 4:16 pm

Re: Smets-Wouters in Dynare 4

Postby billsnow » Mon Mar 16, 2009 4:05 am

Hi,

Would you mind telling me where to download their Dynare codes? Thanks.

Bill
billsnow
 
Posts: 6
Joined: Wed Feb 18, 2009 12:39 am
Location: Ottawa, ON, Canada

Re: Smets-Wouters in Dynare 4

Postby bogmunds » Wed Mar 18, 2009 11:28 pm

I've been looking for the code as well - could someone post it?
bogmunds
 
Posts: 7
Joined: Sat Dec 29, 2007 7:49 pm

Re: Smets-Wouters in Dynare 4

Postby StephaneAdjemian » Thu Mar 19, 2009 8:47 am

Hi, you can obtain the code and data used by Smets and Wouters here.

Best, Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Re: Smets-Wouters in Dynare 4

Postby bogmunds » Thu Mar 19, 2009 7:19 pm

Thanks!
bogmunds
 
Posts: 7
Joined: Sat Dec 29, 2007 7:49 pm


Return to Dynare version 4

Who is online

Users browsing this forum: No registered users and 1 guest