Page 1 of 1

RBC_est.mod

PostPosted: Tue Mar 05, 2013 4:31 pm
by tophukg
Hello,
I was trying to run RBC_est.mod, but I can find the "simuldataRBC", so I search in dynare forum and find the link viewtopic.php?f=1&t=1477.
I download it , but i can run it againt, the error :
You did not declare endogenous variables after the estimation/calib_smoother command.
??? Undefined function or method 'gaminv' for input arguments of type 'double'.

Error in ==> draw_prior_density at 72
infbound = 1/sqrt(gaminv(1-10*truncprior, p7(indx)/2,
2/p6(indx)))+p3(indx);

Error in ==> plot_priors at 55
[x,f,abscissa,dens,binf,bsup] = draw_prior_density(i,bayestopt_);

Error in ==> dynare_estimation_init at 125
plot_priors(bayestopt_,M_,estim_params_,options_)

Error in ==> dynare_estimation_1 at 59
[dataset_,xparam1, M_, options_, oo_, estim_params_,bayestopt_] =
dynare_estimation_init(var_list_, dname, [], M_, options_, oo_, estim_params_,
bayestopt_);

Error in ==> dynare_estimation at 70
dynare_estimation_1(var_list,dname);

Error in ==> rbc_est at 142
dynare_estimation(var_list_);

Error in ==> dynare at 120
evalin('base',fname) ;
I was attached 2 file, can you help me ? I am sorry if it has any misspelling

Re: RBC_est.mod

PostPosted: Sun Mar 10, 2013 9:58 am
by jpfeifer
Which version of Dynare are you using? It works on my machine with Dynare 4.3.2. Moreover, there could be an issue with your paths. The function gaminv should be contained in the \matlab\missing\stats subfolder of your Dynare installation.