please help : Reference to non-existent field

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.

please help : Reference to non-existent field

Postby jacklee » Tue Jul 19, 2011 12:59 pm

I am estimating a dsge model using Bayesian method.
but the problem below arises. I tried to solve it following some advices on the forums,but failed.
I am a newbie.
I will really appreciate your help .

??? Reference to non-existent field 'y'.

Error in ==> read_variables at 63
dyn_tmp_01 = s.(deblank(var_names_01(dyn_i_01,:)));

Error in ==> dynare_estimation_1 at 237
rawdata =
read_variables(options_.datafile,options_.varobs,[],options_.xls_sheet,options_.xls_range);

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> mymod at 302
dynare_estimation(var_list_);

Error in ==> dynare at 132
evalin('base',fname) ;
Attachments
mymod.mod
(2.42 KiB) Downloaded 247 times
Last edited by jacklee on Tue Jul 19, 2011 2:01 pm, edited 1 time in total.
jacklee
 
Posts: 5
Joined: Tue Jul 19, 2011 12:46 pm

Re: for help : Reference to non-existent field

Postby jacklee » Tue Jul 19, 2011 1:02 pm

here is my datafile
Attachments
simudata.xls
(29.5 KiB) Downloaded 186 times
jacklee
 
Posts: 5
Joined: Tue Jul 19, 2011 12:46 pm

Re: please help : Reference to non-existent field

Postby jacklee » Wed Jul 20, 2011 4:04 am

I've solved it maybe.
import simudata.xls ,save as simudata.mat
write .m file named simudata.m
codes as follows:
load simudata;
c=data(:,1);
y=data(:,2);
....
....
save simudata
jacklee
 
Posts: 5
Joined: Tue Jul 19, 2011 12:46 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests