estimateBetaParam: Estimate the parameters of a Beta distribution

View source: R/estimateBetaParam.R

estimateBetaParamR Documentation

Estimate the parameters of a Beta distribution

Description

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.

Usage

estimateBetaParam(x)

Arguments

x

a vector of proportions.

Value

a list object with the estimate of alpha in a and beta in b.

Author(s)

Belinda Phipson

Examples

# Generate proportions from a beta distribution
props <- rbeta(1000, shape1=2, shape2=10)
estimateBetaParam(props)


Oshlack/speckle documentation built on Oct. 16, 2022, 9:39 a.m.