Skip to content
Prev 199828 / 398502 Next

Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulation in R...

On Nov 10, 2009, at 5:00 PM, David Winsemius wrote:

            
Note that Ravi Varadhan and I may not be not disagreeing since:

 > rgamma
function (n, shape, rate = 1, scale = 1/rate)
snipped

You are fairly far out in the right tail of that distribution:

 >  round(rgamma(200, shape=0.067,  scale = 1/0.008))
   [1]  12   0   0   0  20   0   9   0  54   0   0   0   2   8  49    
0  26   0   0   0   0   2   0   0   0   0
  [27]   0   0   3   0   0   1   0   0   0  11   0   0   1 256   0    
3   0   9   0   0   0   0   0   1   0   0
  [53]   0   0   0   0   1   0   0   0   2   1   0   0   0   0  13    
0   0   0   0   0   0   0 152 157   0   3
  [79]   4   0   0   0   0  26   0  34   0   0   0   0   0   0   0    
0   0   0   0   0   0   0   0   0   0   0
[105]   4   0   0   0   0   0   0   0   2   0   1   0   5   2   0   
18   0   0   0   0   0   0  19   0 190   0
[131]   0   0   2   0   0   0   0  83   0   0   0   0   0   4   0    
0   0   0   0  20   0   9   1   1   0   0
[157]   0   4  16   0  28   0   0   0   0   0   0   0   0   0   0    
1   0   0   0   0   0   0   0  23   0   0
[183]   0   0   0   0   6   1   1   0   1   0   0   0   1   0   0    
0   0   0

I'm wondering if the Gamma distribution is the correct distribution to  
be fitting? Is there some sort of