I was trying to generate random numbers with a gamma distribution. In R the
function is: 
rgamma(n, shape, rate = 1, scale = 1/rate). My question is that if
X~gamma(alpha, beta) and I want to generate one random number where do I
plug alpha and beta in rgamma? and, what is the meaning and use of rate?
Thanks for your attention,
Jorge 
 
 
 

	[[alternative HTML version deleted]]


