Error message: Input to SCHUR must not contain NaN or Inf
Posted: Mon Jan 25, 2010 10:20 pm
I am trying to estimate a standard DSGE model with only real rigidities. Matlab gives me the error message as follows:
??? Error using ==> schur
Input to SCHUR must not contain NaN or Inf.
Error in ==> lyapunov_symm at 62
[U,T] = schur(a);
Error in ==> DsgeLikelihood at 173
Pstar = lyapunov_symm(T,R*Q*R',options_.qz_criterium,options_.lyapunov_complex_threshold);
Error in ==> initial_estimation_checks at 60
[fval,cost_flag,ys,trend_coeff,info] = DsgeLikelihood(xparam1,gend,data,data_index,number_of_observations,no_more_missing_observations);
Error in ==> dynare_estimation_1 at 338
initial_estimation_checks(xparam1,gend,data,data_index,number_of_observations,no_more_missing_observations);
Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});
Error in ==> usmodel at 337
dynare_estimation(var_list_);
Error in ==> dynare at 132
evalin('base',fname) ;
I would really appreciate if someone can tell me what is the problem. The mod file and the file calculating the steady states are attached. Thanks
I am not sure if I should use every variable as log of its value. So I replaced every variable with exp(x), but it has the same error message.
??? Error using ==> schur
Input to SCHUR must not contain NaN or Inf.
Error in ==> lyapunov_symm at 62
[U,T] = schur(a);
Error in ==> DsgeLikelihood at 173
Pstar = lyapunov_symm(T,R*Q*R',options_.qz_criterium,options_.lyapunov_complex_threshold);
Error in ==> initial_estimation_checks at 60
[fval,cost_flag,ys,trend_coeff,info] = DsgeLikelihood(xparam1,gend,data,data_index,number_of_observations,no_more_missing_observations);
Error in ==> dynare_estimation_1 at 338
initial_estimation_checks(xparam1,gend,data,data_index,number_of_observations,no_more_missing_observations);
Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});
Error in ==> usmodel at 337
dynare_estimation(var_list_);
Error in ==> dynare at 132
evalin('base',fname) ;
I would really appreciate if someone can tell me what is the problem. The mod file and the file calculating the steady states are attached. Thanks
I am not sure if I should use every variable as log of its value. So I replaced every variable with exp(x), but it has the same error message.