Indexing approach to predictors

I think the easiest solution would be to use

formula = bf(
  pulled_left | trials(1) ~ a + b, 
  a ~ 0 + actor, 
  b ~ 0 + treatment,
  nl = TRUE
)
prior = prior(normal(0, 1.5), nlpar = "a") + 
  prior(normal(0, 0.5), nlpar = "b")
7 Likes