Steady state of complex model

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.

Steady state of complex model

Postby Oriana » Sat Jan 03, 2015 2:17 pm

Hi! I am quite new with Dynare. Nevertheless , am trying to run up a quite complex model.

I got the following message :

Warning: Some of the parameters have no value (c1shareoop, c2shareoop, c2sharemcm, c2sharecnc, c2sharemim,
c2ratiooyoc, c2shareowo) when using steady. If these parameters are not initialized in a steadystate file,
Dynare may not be able to solve the model...
> In test_for_deep_parameters_calibration at 46
In steady at 33
In oilmodJRstickycombodynarenonlineartest at 2088
In dynare at 180

I am rather surprised as I am sure that I have specified the value of c1shareoop in my mod file.
I will be very grateful if someone could tell me what are the possible errors I have committed in my code.
Attachments
oilmodJRstickycombodynarenonlineartest.mod
(52.54 KiB) Downloaded 56 times
oilmodJRstickycombodynarenonlineartest_steadystate.m
(6.77 KiB) Downloaded 47 times
Oriana
 
Posts: 67
Joined: Fri Jul 18, 2014 2:49 pm

Re: steady state file

Postby jpfeifer » Mon Jan 05, 2015 10:25 pm

You are not performing a proper recursive setting of parameters. The problem starts with
Code: Select all
c2chi0 = (c2w)*(c2lambdaq)/((1-(c2l))^(-c2chi));

When you execute this, c2w is not defined. The message about c1shareoop comes from you trying to reset it later on using undefined parameters so that it is NaN. Replace the comments with "//" with the Matlab comment "%" and then use Matlab's code execution to check the parameter definitions (select code and then use Evaluate Selection of F9)
------------
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: steady state file

Postby Oriana » Thu Jan 08, 2015 5:28 am

Thank you very much. Your are absolutely right and fortunately I got there before your reply.

Nevertheless , after some modifications in the mod.file I got the following errors:

Undefined function or variable 'c1lambdaqss'.

Error in oilmodJRstickycombodynarenonlineartest (line 2075)
oo_.steady_state( 1 ) = log(c1lambdaqss);

Error in dynare (line 180)
evalin('base',fname) ;

I know that 'c1lambdaqss' is not defined. Nevertheless in the original code we had

initval;
c1lambdaq = log(c1lambdaqss);
c1q = log(c1qss);
c1i = log(c1iss);
c1k = log(c1kss);
c1c = log(c1css);…. end;

Can someone, please, help me to understand what this means and how I should resolve this problem?
Attachments
oilmodJRstickycombodynarenonlineartest.mod
(54.57 KiB) Downloaded 49 times
oilmodJRstickycombodynarenonlineartest_steadystate.m
(8.47 KiB) Downloaded 48 times
Oriana
 
Posts: 67
Joined: Fri Jul 18, 2014 2:49 pm

Re: steady state file

Postby jpfeifer » Thu Jan 08, 2015 9:23 pm

If you are using a steady state file, you are not supposed to use an initval block. Delete it.
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests