qbern | R Documentation |
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)
p |
vector of probabilities |
prob |
probability of success |
lower.tail , log.p , log |
see stats::Binomial |
x , q |
vector of quantiles |
Numeric vector of length equal to the maximum of the lengths of the input arguments.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.