brms_bernoulli_1 | R Documentation |
Model of class brmsfit
brms_bernoulli_1
An object of class brmsfit
of length 23.
## Not run:
set.seed(1234)
dat <- data.frame(
outcome = rbinom(n = 100, size = 1, prob = 0.35),
var_binom = as.factor(rbinom(n = 100, size = 1, prob = 0.3)),
var_cont = rnorm(n = 100, mean = 10, sd = 7),
groups = sample(letters[1:2], size = 100, replace = TRUE)
)
set.seed(1234)
brm(outcome ~ var_binom * groups + var_cont, data = dat, family = bernoulli())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.