View source: R/distributions.R
mom_beta | R Documentation |
Compute the parameters shape1
and shape2
of the beta distribution
using method of moments given the mean and standard
deviation of the random variable of interest.
mom_beta(mean, sd)
mean |
Mean of the random variable. |
sd |
Standard deviation of the random variable. |
If μ is the mean and
σ is the standard deviation of the random variable, then the method
of moments estimates of the parameters shape1
= α > 0 and
shape2
= β > 0 are:
α = μ ≤ft(\frac{μ(1-μ)}{σ^2}-1 \right)
and
β = (1 - μ) ≤ft(\frac{μ(1-μ)}{σ^2}-1 \right)
A list containing the parameters shape1
and shape2
.
mom_beta(mean = .8, sd = .1) # The function is vectorized. mom_beta(mean = c(.6, .8), sd = c(.08, .1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.