beta_params: Calculate alpha and beta parameters of Beta distribution.

Description Usage Arguments Value Details

Description

Function to calculate the alpha and beta parameters of the Beta distribution based on the method of moments using the mean μ and standard deviation σ of the random variable of interest.

Usage

1

Arguments

mean

Mean of the random variable.

sigma

Standard deviation of the random variable (i.e., standar error).

Value

alpha Alpha parameter of beta distribution

beta Beta parameter of beta distribution

Details

Based on methods of moments. If μ is the mean and σ is the standard deviation of the random variable, then

α = (\frac{1-μ}{σ^2} - \frac{1}{μ}) μ^2

and

β = α (\frac{1}{μ} -1)


feralaes/dampack documentation built on May 16, 2019, 12:48 p.m.