Page 1 of 1

Estimation error with 'loglinear' options.

PostPosted: Thu Apr 05, 2012 3:03 pm
by flyingpig
Hello, I have a problem when putting 'loglinear' into 'estimation' options, as below:

??? Error using ==> dynare_estimation_init at 303
There are complex values in the data! Probably a wrong transformation

Error in ==> dynare_estimation_1 at 37
[data,rawdata,xparam1] = dynare_estimation_init(var_list_);

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

Error in ==> essay2_b at 273
dynare_estimation(var_list_);

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


What does it mean complex value in data, I use simulated data, not any complex value.

Re: Estimation error with 'loglinear' options.

PostPosted: Wed Apr 18, 2012 7:53 pm
by jpfeifer
It means your variable definitions do not correspond to the data definition. If you take logs of a negative variable in Matlab, this yields a complex number. Hence, the error.