View source: R/prior_bernoulli.R
prior_bernoulli | R Documentation |
Prior bernoulli distribution
prior_bernoulli(theta)
theta |
numeric. Probability (in [0, 1]). |
Stan reference https://mc-stan.org/docs/functions-reference/bernoulli-distribution.html
Object of class PriorBernoulli
.
Other priors:
prior_beta()
,
prior_cauchy()
,
prior_exponential()
,
prior_gamma()
,
prior_half_cauchy()
,
prior_half_normal()
,
prior_normal()
,
prior_poisson()
,
uniform_prior()
bp <- prior_bernoulli(0.23)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.