dBetaBinom: Probability Mass under the Beta-Binomial Probability-Mass...

View source: R/betafunctions.R

dBetaBinomR Documentation

Probability Mass under the Beta-Binomial Probability-Mass Distribution.

Description

Gives the density at x under the Beta-Binomial PMF.

Usage

dBetaBinom(x, N, l, u, alpha, beta)

Arguments

x

Value of x (a specific number of successes).

N

The total number of trials.

l

The first (lower) location parameter.

u

The second (upper) location parameter.

alpha

The first shape parameter.

beta

The second shape parameter.

Value

The value for the probability mass at x given the specified Beta-Binomial distribution.

Examples

# Assume some variable follows a Beta-Binomial distribution with 100 number
# of trials, and with probabilities of successful trials drawn from a four-
# parameter Beta distribution with location parameters l = 0.25 and u = 0.75
# and shape parameters alpha = 5 and beta = 3. To compute the probability
# density at a specific point of the distribution (e.g., 50):
dBetaBinom(x = 50, N = 100, l = 0.25, u = 0.75, alpha = 5, beta = 3)

betafunctions documentation built on May 29, 2024, 1:13 a.m.