Given a user-specified mean value, betaRootA uses uniroot to find the shape1 (alpha) parameter of the distribution that will give that mean. Parameter shape2 may also be given as user input, but has a default value of 1.

betaRootA(mean, beta = 1)

Arguments

mean

the mean of the beta distribution

beta

beta parameter of the beta distribution

Value

numeric value

Examples

betaRootA(mean = 0.95, beta = 20)
#> [1] 380