The Bernoulli Distribution
The density function dbern(), distribution function pbern(), and quantile function qbern() for a Bernoulli distribution, with success probability prob. These are equivalent to dbinom(p, 1, prob), pbinom(p, 1, prob)
dbern()
pbern()
qbern()
prob
dbinom(p, 1, prob)
pbinom(p, 1, prob)
and qbinom(p, 1, prob).
qbinom(p, 1, prob)
qbern(p, prob, lower.tail = TRUE, log.p = FALSE) pbern(q, prob, lower.tail = TRUE, log.p = FALSE) dbern(x, prob, log = FALSE)
p
lower.tail, log.p, log
x, q
Numeric vector of length equal to the maximum of the lengths of the input arguments.
Useful links