Wrappers for dbinom, pbinom, qbinom and rbinom with size
set
to 1.
1 2 3 4 5 6 7 | dbernoulli(x, prob, log = FALSE)
pbernoulli(q, prob, lower.tail = TRUE, log.p = FALSE)
qbernoulli(p, prob, lower.tail = TRUE, log.p = FALSE)
rbernoulli(n, prob)
|
x |
vector of quantiles. |
prob |
probability of success on each trial. |
log |
logical; if TRUE, probabilities p are given as log(p). |
lower.tail |
logical; if TRUE (default), probabilities are P[X ≤ x], otherwise, P[X > x]. |
p |
vector of probabilities. |
n |
number of observations. If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.