drbinom: drbinom

Description Usage Arguments Value Examples

View source: R/distributions.R

Description

Reduced binomial probability distribution function rBinomial(x;N,p,R(x;r)), takes reduced quantiles rather than full quantiles.

Usage

1
drbinom(x, size, prob, red, log = FALSE)

Arguments

x

Reduced count quantile (alternatively input reduction(x,red) if x is a full count quantile).

size

Number of trials (full count size).

prob

Probability of success for each trial.

red

The factor r by which x has been reduced.

Value

The probability of observing quantile x.

Examples

1
2
Y <- drbinom(0:20, 20, 0.3, 2)
plot(Y, xlab="Y~rBinom(N=20,p=0.3,r=2)", ylab="P[Y=y]")

mrparker909/redNMix documentation built on April 4, 2020, 12:24 a.m.