BetaConversion: Converting beta distribution parameters

Description Usage Arguments Details Value Examples

Description

Convert parameter values between different beta distribution parametrization

Usage

1
2
3
4
5
6
7
8
betaParam(
  alpha = NULL,
  beta = NULL,
  m = NULL,
  theta = NULL,
  mu = NULL,
  sigma2 = NULL
)

Arguments

alpha

A numeric. First shape parameter

beta

A numeric. Second shape parameter

m

A numeric. Mode

theta

A numeric. Concentration

mu

A numeric. Mean

sigma2

A numeric. Variance

Details

This function needs two parameters that caracterise the beta distribution (alpha and beta, mode and concentration or mean and variance) and returns all parametrizations.

Value

A named numeric with all equivalent formulations of the distribution.

Examples

1
2
3
betaParam(alpha = 5, beta = 5)
betaParam(m = 0.5, theta = 10)
betaParam(mu = 0.5, sigma2 = 0.02272727)

SRenan/XCIR documentation built on Oct. 8, 2021, 3:11 a.m.