stancode(count ~ Base + Age, data = epilepsy,
prior = prior(constant(1), class = "b"))
# will fail parsing because brms will try to broadcast a vector into a vector
stancode(count ~ Base + Age, data = epilepsy,
prior = prior(constant(alpha), class = "b"),
stanvars = stanvar(c(1, 0), name = "alpha"))
stancode(count ~ Base + Age, data = epilepsy,
prior = prior(constant(alpha, broadcast = FALSE), class = "b"),
stanvars = stanvar(c(1, 0), name = "alpha"))
Run the code above in your browser using DataLab