View source: R/estimateBetaParam.R
estimateBetaParam | R Documentation |
This function estimates the two parameters of the Beta distribution, alpha and beta, given a vector of proportions. It uses the method of moments to do this.
estimateBetaParam(x)
x |
a vector of proportions. |
a list object with the estimate of alpha in a
and beta in
b
.
Belinda Phipson
# Generate proportions from a beta distribution props <- rbeta(1000, shape1=2, shape2=10) estimateBetaParam(props)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.