Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

beta_params

Calculate alpha and beta parameters of beta distribution.


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

beta_params(mean, sigma)

Arguments

mean

mean of the random variable.

sigma

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

Value

a list containing the following:

alpha The method-of-moments estimate for the alpha parameter of the beta distribution

beta The method-of-moments estimate for the beta parameter of the 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)


dampack

Decision-Analytic Modeling Package

v1.0.0
GPL-3
Authors
Fernando Alarid-Escudero [aut], Greg Knowlton [aut, cre], Caleb Easterly [aut], Eva Enns [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.