Skip to content
Prev 14369 / 398502 Next

generating a gamma random variable

On Sun, 21 Oct 2001, Bob O'Hara wrote:

            
Come to think of it, there is no reason why I should not use rchisq. This
would depend on T, but that is Ok, since T is a constant within the
calculation, and the method I'm using above depends on T being fixed
anyway. This would probably be the most efficient way, since to get a
gamma distribution would then just involve multiplying by a constant.

Background: I'm using this simulation to run coupled Markov chains. T is a
contant within the calculation.
Yes, actually Stochastic Simulation is on my desk as I write, and it
suggests the methods I outlined above for simulating from chisq/gamma.

I'm still wondering about how to check (in general) whether a bunch of rvs
are distributed as gamma or not. How do people check such things in
practice?

Thanks for your reply.
                                      Sincerely, Faheem Mitha.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._