how can I use my data file

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.

how can I use my data file

Postby darline » Mon Nov 04, 2013 3:34 pm

Morning. Please I have a problem when I try to execute my mode file with my data file, this error message appears. please what can I do to solve it?
thanks.
??? Subscripted assignment dimension mismatch.

Error in ==> read_variables at 98
dyn_data_01(:,dyn_i_01) = dyn_tmp_01;

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

Error in ==> dynare_estimation_init at 347
dataset_ =
initialize_dataset(options_.datafile,options_.varobs,options_.first_obs,options_.nobs,transformation,options_.prefilter,xls);

Error in ==> dynare_estimation_1 at 59
[dataset_,xparam1, M_, options_, oo_, estim_params_,bayestopt_] = dynare_estimation_init(var_list_,
dname, [], M_, options_, oo_, estim_params_, bayestopt_);

Error in ==> dynare_estimation at 70
dynare_estimation_1(var_list,dname);

Error in ==> esti at 178
dynare_estimation(var_list_);

Error in ==> dynare at 120
evalin('base',fname) ;
darline
 
Posts: 13
Joined: Wed Oct 23, 2013 8:29 pm

Re: how can I use my data file

Postby darline » Mon Nov 04, 2013 3:38 pm

this is the mod.file and the data file
Attachments
esti.mod
(3.07 KiB) Downloaded 253 times
camer.XLS
(4.05 KiB) Downloaded 295 times
darline
 
Posts: 13
Joined: Wed Oct 23, 2013 8:29 pm

Re: how can I use my data file

Postby jpfeifer » Tue Nov 05, 2013 9:34 am

Dynare is case-sensitive. Your model variables are lowercase, while your datafile uses uppercase names.
------------
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: how can I use my data file

Postby darline » Tue Nov 05, 2013 9:50 pm

thanks very much I have rectified it but another problem is there. I do not understand, when I execute the simlation, its run. But when I try to estimate, the following error message appears:

Error using ==> print_info at 40
Blanchard Kahn conditions are not satisfied: no stable equilibrium

Error in ==> initial_estimation_checks at 69
print_info(info, DynareOptions.noprint)

Error in ==> dynare_estimation_1 at 169
oo_ =
initial_estimation_checks(objective_function,xparam1,dataset_,M_,estim_params_,options_,bayestopt_,oo_);

Error in ==> dynare_estimation at 70
dynare_estimation_1(var_list,dname);

Error in ==> darline at 265
dynare_estimation(var_list_);

Error in ==> dynare at 120
evalin('base',fname) ;

I don't realy know what to do.
Thanks in advance
Attachments
darline.mod
(4.8 KiB) Downloaded 177 times
darline
 
Posts: 13
Joined: Wed Oct 23, 2013 8:29 pm

Re: how can I use my data file

Postby jpfeifer » Wed Nov 06, 2013 4:26 pm

You should then provide your calibrated values as explicit starting values. Moreover, given your unit roots (two eigenvalues are 1) you might need the diffuse_filter option in estimation (see the manual)
------------
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: how can I use my data file

Postby tinnytots » Fri Nov 22, 2013 9:25 am

Some writers make it difficult to understand the point they’re trying to get across. You, the other hand have made your points clear, concise and interesting.
tinnytots
 
Posts: 1
Joined: Fri Nov 22, 2013 7:39 am

Re: how can I use my data file

Postby Corinna314 » Fri Dec 27, 2013 11:49 am

Thanks for posting here information… I have searched from this site.. It is amazing..
Corinna314
 
Posts: 1
Joined: Fri Dec 27, 2013 11:40 am


Return to Dynare contributions and examples

Who is online

Users browsing this forum: No registered users and 5 guests