Description Usage Arguments Details Value References Examples
Probability mass function and cumulative distribution function of the Bernoulli distribution.
1 2 |
y |
a vector of zeros and ones. |
prob |
probability. |
The code relies on the functions dbinom
and pbinom
with size=1
and log=FALSE
.
dbern
returns the probability mass function, pbern
returns the cumulative distribution function.
See the documentation for dbinom
and pbinom
for more details.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.