dcBinom: Probability Mass function for Lord's Two-Term Approximation...

View source: R/betafunctions.R

dcBinomR Documentation

Probability Mass function for Lord's Two-Term Approximation to the Compound Binomial Distribution.

Description

Gives the density at x under Lord's two-term approximation to the compound Binomial PMF.

Usage

dcBinom(x, N, k, p)

Arguments

x

Value of x (a specific number of successes).

N

The total number of trials.

k

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

p

Probability of success for each trial.

Examples

# Assume some variable follows a compound Binomial distribution with 100
# trials, a 50% probability of success on each trial, and Lord's k = 1. To
# compute the probability density at a specific point of the distribution
# (e.g., 50):
dcBinom(x = 50, N = 100, k = 1, p = .5)

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