Bernoulli: The Bernoulli Distribution

Description Usage Arguments

Description

The quantile function qbern for a Bernoulli distribution, with success probability prob. This is equivalent to qbinom(p, 1, prob).

Usage

1
2
3
4
5
qbern(p, prob, lower.tail = TRUE, log.p = FALSE)

pbern(q, prob, lower.tail = TRUE, log.p = FALSE)

dbern(x, prob, log = FALSE)

Arguments

p

vector of probabilities

prob

probability of success

lower.tail, log.p, log

see stats::Binomial

x, q

vector of quantiles


multinma documentation built on March 18, 2021, 5:07 p.m.