I was trying to run RBC_est.mod, but I can find the “simuldataRBC”, so I search in dynare forum and find the link File simuldataRBC.
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,

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

Error in ==> dynare_estimation_init at 125

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_,

Error in ==> dynare_estimation at 70

Error in ==> rbc_est at 142

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
simuldataRBC.m (141 KB)
RBC_Est.mod (796 Bytes)

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.