Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

F7-mu.dbinom

Binomial Distribution


Description

Probability mass function (density) of the binomial distribution.

Usage

mu.dbinom(x, size, prob, log = FALSE)

Arguments

x

vector of quantiles. Missing values (NAs) are allowed.

size

vector of (positive integer) numbers of coin flips for which the Binomial distribution measures the number of heads.

prob

vector of probabilities of a head. If length(x) is larger than 1, then length(x) random values are returned.

log

logical; if TRUE, probabilities p are given as log(p).

Details

mu.dbinom <- function(x, size, prob, log=FALSE)
  if (size==0) 1 else dbinom(x, size, prob, log=FALSE)

Value

Returns the density of bin(size, prob) at x.

Author(s)

Knut M. Wittkowski kmw@rockefeller.edu, Tingting Song ttsong@gmail.com

See Also

Examples

dbinom(100, 10, 3/10, log=FALSE)

muStat

Prentice Rank Sum Test and McNemar Test

v1.7.0
GPL (>= 2)
Authors
Knut M. Wittkowski <kmw@rockefeller.edu> and Tingting Song <ttsong@gmail.com>
Initial release
2010-09-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.