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)
mean | the mean of the beta distribution |
---|---|
beta | beta parameter of the beta distribution |
numeric value
betaRootA(mean = 0.95, beta = 20)#> [1] 380