fitbeta: Fits a beta distribution based on quantiles

Description Usage Arguments Value Functions Note Author(s) See Also Examples

View source: R/helper_functions.R

Description

Fits a beta distribution based on quantiles

Usage

1
2
3
fitbeta_ml(point, lci, uci)

fitbeta(point, lci, uci)

Arguments

point

Point estimates corresponding to the median

lci

Lower limit (quantile 0.025)

uci

Upper limit (quantile 0.975)

Value

parameters shape1 and shape2 of a beta distribution

Functions

Note

This is a wrap of the fitdist to obtain the best parameters for a beta distribution based on quantiles.

When using confidence intervals (not ML), the shape parameters are obtained using the following formula:

varp = (p_uci-p_lci)/4^2

shape1 = p_mean * (p_mean * (1 - p_mean) / varp - 1)

shape2 =(1 - p_mean) * (p_mean * (1 - p_mean) / varp - 1)

Author(s)

John J. Aponte

See Also

fitdist

Examples

1
2
fitbeta_ml(0.45,0.40,0.50)
fitbeta(0.45,0.40,0.50)

convdistr documentation built on April 20, 2021, 9:06 a.m.