betaCI: Obtain CIs from the sampled values

View source: R/get_beta_ci.R

betaCIR Documentation

Obtain CIs from the sampled values

Description

Obtain CIs from the sampled values

Usage

betaCI(betaDist, percentile = c(0.05, 0.95))

Arguments

betaDist

A vector with the values sampled from the distribution

percentile

A vector with the two percentiles that will be returned. Defaults to 0.05 and 0.95, to give 90% confidence intervals.

Value

A named vector with the desired percentiles.

Examples

betasample <- rbeta(n=10000, 2, 2)
psiplot:::betaCI(betasample)

kcha/psiplot documentation built on March 27, 2022, 4:20 a.m.