I was trying to run a Bayesian multilevel cumulative model on ordinal data and was reading the documentation of brms
online. My model looks something like
model <- brm(bf(y ~ Condition + (Condition|item) + (Condition|subject)),
data = df,
family = cumulative(link="probit", threshold="flexible"),
chains=4,cores=4,iter=2000, prior = prior)
I saw that some documentations do not have the bf()
function when specifying the formula but some do. Could someone explain to me what is bf()
doing here? Thanks!