Hi, Please correct me if I am wrong... The matlab stat toolbox is able to draw vectors (even matrices) of independent gamma or beta variates. What is the version of your statistical toolbox ?
I wrote an m file (also called gamrnd.m) to draw vectors of independent gamma variates. This file is located under /matlab/distributions/toolbox and this folder is written in the matlab's path by dynare if the stat toolbox is not detected.
Best,
Stéphane.
bigbigben wrote:Is there a typo around the area to use gamrnd or betarnd to draw values? The two matlab functions gamrnd and betarnd only accept scalar as input, but the generated gamma_index or beta_index are vectors.