binomdist: Find a binomial-distribution probability

Description Usage Arguments Value

View source: R/binomdist-function.R

Description

Similar to Excel's BINOMDIST(number_s,trials,probability_s,cumulative) function. binomdist() uses stats::pbinom() when .cumulative = TRUE, and stats::dbinom() when not (i.e., the default).

Usage

1
binomdist(.s, .t, .p, .cumulative = FALSE, ...)

Arguments

.s

The number of successes. Cannot be less than 0.

.t

The number of trials. Must be greater than 0 and greater than or equal to .s

.p

The probability of success on each trial. Must be greater than 0 and less than 1.

.cumulative

Defaults to FALSE, returning the probability mass function, which is the probability that there are .s successes. If TRUE, binomdist returns the cumulative distribution function, which is the probability that there are at most .s successes.

...

(Optional) Extra arguments passed to stats::pbinom() or stats::dbinom()

Value

Returns the individual term binomial distribution probability.


darrellpenta/uxstats documentation built on Jan. 18, 2022, 8:06 p.m.