example fs2000ns problem

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.

example fs2000ns problem

Postby shengan28 » Mon Jul 20, 2015 11:28 pm

The example from chapter 6 of the user guide, fs2000ns.mod, does not work. What changes will make it work?
Here is the error message I get:

"Error using print_info (line 74)
Impossible to find the steady state. Either the model doesn't have a steady state, there are an
infinity of steady states, or the guess values are too far from the solution"
shengan28
 
Posts: 13
Joined: Mon Jul 20, 2015 11:24 pm

Re: example fs2000ns problem

Postby jpfeifer » Tue Jul 21, 2015 5:24 am

------------
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: example fs2000ns problem

Postby shengan28 » Tue Jul 21, 2015 2:39 pm

Thanks Johannes, that works better, but I now get the error message:
"Error using eval
Undefined function or variable 'P_obs'. "

That does not make sense since the variable P_obs is defined in the Model block, and Dynare does not have a problem with the variable Y_obs.
shengan28
 
Posts: 13
Joined: Mon Jul 20, 2015 11:24 pm

Re: example fs2000ns problem

Postby jpfeifer » Tue Jul 21, 2015 2:59 pm

Where does the problem occur. I cannot replicate the issue in 4.4.3. Please post the full error message.
------------
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: example fs2000ns problem

Postby shengan28 » Tue Jul 21, 2015 3:42 pm

Error using eval
Undefined function or variable 'P_obs'.

Error in read_variables (line 74)
dyn_tmp_01 = eval(var_names_01(dyn_i_01,:));

Error in initialize_dataset (line 32)
rawdata = read_variables(datafile,varobs,[],xls.sheet,xls.range);

Error in dynare_estimation_init (line 475)
dataset_ =
initialize_dataset(options_.datafile,options_.varobs,options_.first_obs,options_.nobs,transformation,options_.prefilter,xls);

Error in dynare_estimation_1 (line 81)
[dataset_,xparam1, hh, M_, options_, oo_, estim_params_,bayestopt_] =
dynare_estimation_init(var_list_, dname, [], M_, options_, oo_, estim_params_, bayestopt_);

Error in dynare_estimation (line 89)
dynare_estimation_1(var_list,dname);

Error in fs2000ns2 (line 214)
dynare_estimation(var_list_);

Error in dynare (line 180)
evalin('base',fname) ;
shengan28
 
Posts: 13
Joined: Mon Jul 20, 2015 11:24 pm

Re: example fs2000ns problem

Postby jpfeifer » Wed Jul 22, 2015 5:01 am

You are missing the dataset file fsdat_simul.m. It can be found e.g. here https://github.com/DynareTeam/dynare/blob/master/tests/fs2000/fsdat_simul.m
------------
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: example fs2000ns problem

Postby shengan28 » Thu Jul 23, 2015 2:47 pm

Thanks again for the post. I did have the old fsdat_simul.m file, so I replaced it with the new one. That seems to work better, but I still have a few error messages. Here they are. Thanks again for your help.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Error using print_info (line 74)
Impossible to find the steady state. Either the model doesn't have a steady state, there are an
infinity of steady states, or the guess values are too far from the solution

Error in steady (line 92)
print_info(info,options_.noprint, options_);

Error in fs2000ns (line 202)
steady;

Error in dynare (line 180)
evalin('base',fname) ;
shengan28
 
Posts: 13
Joined: Mon Jul 20, 2015 11:24 pm

Re: example fs2000ns problem

Postby jpfeifer » Thu Jul 23, 2015 4:24 pm

Why are you using the fs2000ns again. The file I linked to has a steady_state_model block so that the error message cannot appear in this case.
------------
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 User Guide

Who is online

Users browsing this forum: No registered users and 0 guests