dBetacBinom: Probability Mass function for Lord's Beta Compound Binomial...

View source: R/betafunctions.R

dBetacBinomR Documentation

Probability Mass function for Lord's Beta Compound Binomial Distribution.

Description

Gives the density at x under the Beta Compound-Binomial distribution, where the Compound-Binomial distribution is Lord's two-term approximation.

Usage

dBetacBinom(x, N, k, l, u, alpha, beta)

Arguments

x

Value of x (a specific number of successes).

N

Number of trials.

k

Lord's k (see documentation for the Lords.k() function).

l

The lower-bound location parameter of the four-parameter Beta distribution.

u

The upper-bound location parameter of the four-parameter Beta distribution.

alpha

The first shape-parameter of the four-parameter Beta distribution.

beta

The second shape-parameter of the four-parameter Beta distribution. # Assume some variable follows a Beta compound Binomial distribution with 100 # trials, Lord's k = 1, and probabilities of successful trials drawn from a # four-parameter Beta distribution with location-parameters l = .15 and u = # .85, and shape parameters alpha = 6 and beta = 4. To compute the # probability density at a specific point of the distribution (e.g., 50): dBetacBinom(x = 50, N = 100, k = 1, l = .15, u = .85, alpha = 6, beta = 4)


hthaa/betafunctions documentation built on March 10, 2024, 7:20 p.m.