Given mean and variance components, the function returns $\alpha$ and $\beta$ parameters to for a Beta distribution.
Usage
beta.parms(mu, var)
Arguments
mu
A value for mu.
var
A value for var.
Value
A list object containing alpha and beta.
encoding
UTF-8
Details
It calculates $\alpha$ and $\beta$ parameters of the Beta distribution:
$\alpha=\left(\frac{1-\mu}{\sigma^2}-\frac{1}{\mu}\right)\mu^2$ and $\beta=\alpha\left(\frac{1}{\mu}-1\right)$.
References
N. Balakrishnan, V. B. Nevzorov (2003) A Primer on Statistical Distributions. Wiley.