Newrat's code not working (Dynare 4)

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.

Newrat's code not working (Dynare 4)

Postby aajello » Mon Sep 21, 2009 7:11 pm

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
aajello
 
Posts: 8
Joined: Mon Feb 18, 2008 3:42 am

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

Postby aajello » Tue Sep 22, 2009 7:48 pm

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.
aajello
 
Posts: 8
Joined: Mon Feb 18, 2008 3:42 am

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

Postby aajello » Tue Sep 29, 2009 10:44 pm

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.
aajello
 
Posts: 8
Joined: Mon Feb 18, 2008 3:42 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 10 guests