to_mu_sd_gamma | R Documentation |
The function to_mu_sd_gamma
converts the shape and rate to the mean and standard deviation
to_mu_sd_gamma(alpha, lambda)
alpha |
a numeric vector representing the shape of one or more than one gamma distributions |
lambda |
a numeric vector representing the rate of one or more than one gamma distributions.
|
The purpose of this function is to convert the parameterization of gamma distribution in the form of shape and rate to the form of mean and standard deviation.
a list of two items
mu |
a vector of the means of gamma distributions |
sd |
a vector of the standard deviations of gamma distributions |
to_shape_rate_gamma
to_mu_sd_gamma(2, 1)
to_mu_sd_gamma(c(2, 4), c(1, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.