RBC_est.mod

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.

RBC_est.mod

Postby tophukg » Tue Mar 05, 2013 4:31 pm

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
Attachments
simuldataRBC.m
(140.86 KiB) Downloaded 395 times
RBC_Est.mod
(796 Bytes) Downloaded 353 times
tophukg
 
Posts: 9
Joined: Tue Mar 05, 2013 4:20 pm

Re: RBC_est.mod

Postby jpfeifer » Sun Mar 10, 2013 9:58 am

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare User Guide

Who is online

Users browsing this forum: No registered users and 0 guests