sample_or_maximise_gamma | R Documentation |
Draws from the gamma distribution or returns the value which maximises it
sample_or_maximise_gamma(shape, rate, ndraws, maximise = FALSE)
shape |
the shape parameter of a gamma distribution |
rate |
the rate parameter of a gamma distribution |
ndraws |
number of draws if maximise=FALSE |
maximise |
whether to return the mode of the gamma distribution |
a value or (if ndraws > 1) a vector of values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.