Page 1 of 1

Newrat's code not working (Dynare 4)

PostPosted: Mon Sep 21, 2009 7:11 pm
by aajello
Hello,

I have been trying to use newrat's code during the estimation with the new Dynare snapshot (mode_compute = 5), but I am encountering the following problem:

Code: Select all
??? Input argument "number_of_observations" is undefined.

Error in ==> DsgeLikelihood_hh at 166
  no_missing_data_flag = (number_of_observations==gend*nobs);

Error in ==> mr_hessian at 50
[f0, ff0]=feval(func,x,varargin{:});

Error in ==> newrat at 63
    [dum, gg, htol0, igg, hhg]=mr_hessian(func_hh,x,flagit,htol,varargin{:});

Error in ==> dynare_estimation_1 at 419
            [xparam1,hh,gg,fval,invhess] =
            newrat('DsgeLikelihood',xparam1,hh,gg,igg,crit,nit,flag,gend,data);

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

Error in ==> model_07_exp at 581
dynare_estimation(var_list_);

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


Anyone has a suggestion on how to overcome this?

Thanks,

Andrea

Re: Newrat's code not working (Dynare 4)

PostPosted: Tue Sep 22, 2009 7:48 pm
by aajello
Hi again. I noticed that the same mod file with mode_compute = 5 works perfectly on a Unix cluster. Could this be a problem with the way Dynare was compiled on my Mac?

Thanks.

Re: Newrat's code not working (Dynare 4)

PostPosted: Tue Sep 29, 2009 10:44 pm
by aajello
The problem was solved by copying the content of DSGElikelihood_hh.m that worked on the server and substitute it in the same file on my mac. For some reason when I installed version 4.0.4, this particular file was not updated. I had tried recompiling dynare and doing matlab_build, but that didn't help either.