powered by
Simulate gamma random variates
rgamma0(n, shape, scale, method = "inv_tf")
Positive integer; the number of samples.
Positive number; the shape of the gamma distribution.
Positive number; the scale of the gamma distribution.
'base' or 'inv_tf'; 'base' refers to `stats::rgamma` while 'inv_tf' refers to inverse transform.
# NOT RUN { n <- 10 rgamma0(n, shape = 1, scale = 1) # }
Run the code above in your browser using DataLab