Page 1 of 1
Small PM Model for the US
Posted:
Thu Mar 26, 2009 2:00 pm
by playa_b
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
Re: Small PM Model for the US
Posted:
Thu Mar 26, 2009 2:24 pm
by StephaneAdjemian
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.
Re: Small PM Model for the US
Posted:
Thu Mar 26, 2009 3:39 pm
by playa_b
Hi Stephane,
here is the rest of the code
Thanks for your reply
Björn
Re: Small PM Model for the US
Posted:
Thu Mar 26, 2009 4:20 pm
by StephaneAdjemian
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.
Re: Small PM Model for the US
Posted:
Mon Mar 30, 2009 10:05 am
by playa_b
Thanks a lot for the reply. I added the steady state file below.
Regards Björn
Re: Small PM Model for the US
Posted:
Wed Apr 15, 2009 2:56 pm
by playa_b
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
Re: Small PM Model for the US
Posted:
Sat Apr 18, 2009 7:05 pm
by MichelJuillard
Are you sure that you are using a recent version of Dynare?
m
Re: Small PM Model for the US
Posted:
Mon Apr 27, 2009 11:59 am
by playa_b
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
Re: Small PM Model for the US
Posted:
Mon Apr 27, 2009 7:42 pm
by MichelJuillard
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