Small PM Model for the US

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.

Small PM Model for the US

Postby playa_b » Thu Mar 26, 2009 2:00 pm

Hi there,
I downloaded the code of a small Projection Model for the US from Douglas Laxton's website. When I am trying to simaulte dynare (Version 4) shows me a syntax error in the estimation line:

estimation(datafile=data,nobs=56,mode_check,mh_replic=0,mh_nblocks=1,filtered_vars,filter_step_ahead=[1:12]) Y_US;

??? Error using ==> dynare at 19
syntax error at line 114

In the error file, is a problem with dos(command). The code is attached. Plaese halp me to understand the error.
Thanks in advance...

Björn

P.S. The code is attached
Attachments
soe1.mod
(4.84 KiB) Downloaded 105 times
playa_b
 
Posts: 12
Joined: Thu Mar 26, 2009 1:51 pm

Re: Small PM Model for the US

Postby StephaneAdjemian » Thu Mar 26, 2009 2:24 pm

Hi Björn,

Can you also post the code for the steady state and for the data? Otherwise I am not able to reproduce the problem.

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: Small PM Model for the US

Postby playa_b » Thu Mar 26, 2009 3:39 pm

Hi Stephane,

here is the rest of the code

Thanks for your reply

Björn
Attachments
soe1.m
(4.31 KiB) Downloaded 83 times
data.m
(4.72 KiB) Downloaded 79 times
playa_b
 
Posts: 12
Joined: Thu Mar 26, 2009 1:51 pm

Re: Small PM Model for the US

Postby StephaneAdjemian » Thu Mar 26, 2009 4:20 pm

Björn, A file called soe1_steadystate.m is still missing. You need this file (where the steady state of the model is defined). Without this file dynare won't find a steady state (because of the unit root) and will crash. The third equation is a random walk with drift, so there is no steady state for LGDP_BAR_US. But in the steady state file you can choose any value for this variable and determine (consistently with this variable) the steady state level of the other variables. You should look at the files fs2000a.mod and fs2000a_steadystate.m in the subfolder ./tests/fs2000.

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: Small PM Model for the US

Postby playa_b » Mon Mar 30, 2009 10:05 am

Thanks a lot for the reply. I added the steady state file below.

Regards Björn
Attachments
soe1_steadystate.m
(607 Bytes) Downloaded 85 times
playa_b
 
Posts: 12
Joined: Thu Mar 26, 2009 1:51 pm

Re: Small PM Model for the US

Postby playa_b » Wed Apr 15, 2009 2:56 pm

Hi there,

I have a new error message in the code. I think Dynare has problems with the get_param_by_name instruction in my code?
the files are attached.
Thanks for your help!
Björn
Attachments
soe1_steadystate.m
Steady state file
(604 Bytes) Downloaded 90 times
soe1.mod
Mod File
(1.14 KiB) Downloaded 91 times
playa_b
 
Posts: 12
Joined: Thu Mar 26, 2009 1:51 pm

Re: Small PM Model for the US

Postby MichelJuillard » Sat Apr 18, 2009 7:05 pm

Are you sure that you are using a recent version of Dynare?

m
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Re: Small PM Model for the US

Postby playa_b » Mon Apr 27, 2009 11:59 am

Hi there and thanks for your reply!!

I am using version 4 of Dynare, but I don't know if I need specific toolboxes for MATLAB? Is it necessary to have all toolboxes?

Best regards!

Björn
playa_b
 
Posts: 12
Joined: Thu Mar 26, 2009 1:51 pm

Re: Small PM Model for the US

Postby MichelJuillard » Mon Apr 27, 2009 7:42 pm

You don't need any Matlab Toolbox to run Dynare. If you have the Optimization Toolbox, you have the choice of more algorithms for optimization.

The function get_param_by_name that you are refering to in a previous message is in Dynare 4.0.3 as well as in the snapshot. I suggest that you download the last version of Dynare.

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 11 guests