BBUM_primfrac: Fraction of primary beta component under the BBUM model

View source: R/BBUM_primfrac.R

BBUM_primfracR Documentation

Fraction of primary beta component under the BBUM model

Description

BBUM_primfrac computes the expected fraction of density belonging to the primary beta distribution component, from p = 0 to p = x.

Usage

BBUM_primfrac(x, lambda, a, theta, r)

Arguments

x

Vector of quantiles.

lambda

Vector of BBUM parameter lambda. lambda is the fraction of null (uniform distribution density) over all density except the primary beta distribution, i.e. null plus secondary beta.

a

Vector of BBUM parameter a, which corresponds to the a shape parameter of the secondary beta distribution component. It describes the steepness of the second beta distribution.

theta

Vector of BBUM parameter theta. theta is the fraction of primary beta distribution density over all density.

r

Vector of BBUM parameter r, which is the ratio of the a shape parameter of the primary beta distribution over that of the secondary beta distribution. In other words, a*r is the shape parameter for the primary beta distribution component.

Details

This is primarily used for plotting in BBUM_plot(option = "symm").

Value

A vector of values at each value of x.

Examples

BBUM_primfrac(x = c(0.001, 0.007, 0.19, 0.5, 0.99),
  lambda = 0.65, a = 0.1, theta = 0.02, r = 0.07)


wyppeter/bbum documentation built on Oct. 3, 2023, 3:29 p.m.