View source: R/distributions.R
| bernoulli_lpmf | R Documentation |
Bernoulli log-probability mass function
bernoulli_lpmf(x, prob, sum = TRUE)
x |
Vector of binary outcomes (0 or 1). |
prob |
Probability of success. |
The sum of the log-probability.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.