GenBinomial: The Generalised Binomial Distribution

Description Usage Arguments Details

Description

Density, distribution function, quantile function and random generation for the generalised binomial distribution with parameters pi, theta and size.

Usage

1
2
3
4
5
6
7
dgenbinom(g, pi, theta, size)

pgenbinom(g, pi, theta, size, lower.tail = TRUE)

qgenbinom(p, pi, theta, size, lower.tail = TRUE)

rgenbinom(n, pi, theta, size)

Arguments

g

vector of quantiles.

pi

probability of success of the bernoulli.

theta

probability of success on each binomial trial.

size

number of trials.

lower.tail

logical; if TRUE (default), probabilities are Pr[X ≤ x], otherwise Pr[X > x].

p

vector of probabilities.

n

number of observations.

Details

The generalised binomial distribution with size = n, pi = pi and theta = theta has density

Pr(G = g) = \begin{cases} x, g = 0 \\ y, g > 0\end{cases}


significantstats/latticestats documentation built on Nov. 23, 2019, 11:27 a.m.