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)
and 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)
Numeric vector of length equal to the maximum of the lengths of the input arguments.
vector of probabilities
probability of success
see stats::Binomial
vector of quantiles