I understand that the estimates for the two Context parameters describe the effect of Context (sum-coded) on the respective relative odds of a) a “Relative” response compared to an “Absolute” response and b) an “Other” response compared to an “Absolute” response. Is there any way, e.g., through a hypothesis() query to ask whether Context has an effect on, for instance, the log-odds of a “Relative” responses, compared to both “Other” and “Absolute” responses? (I know I could run a separate logistic regression to address this question, but I’m wondering whether one can also obtain the answer to such questions from the model described above.)
You could use the refcat argument of the categorical family function to estimate parameters for all categories at once and then transform things according to your needs. Be aware though that without proper priors, this model will not be idenfitified and in any case will take much more estimation time.
Thank you. I looked into refcat argument but am still a bit confused, as to how I would test from such a model whether there are effects on the absolute odds of a particular level. Here’s an example with a three-way outcome prog:
library("brms")
library("foreign")
ml <- read.dta("https://stats.idre.ucla.edu/stat/data/hsbdemo.dta")
summary(ml)
contrasts(ml$female) = cbind("yes" = c(-1, 1))
my.priors = c(
prior(normal(0, 5), class = b),
prior(normal(0, 5), class = Intercept)
)
m = brm(
prog ~ 1 + read * female,
family = categorical(link=logit, refcat = NA),
prior = my.priors,
data = ml,
)
This yields a model with estimates for all three outcomes:
How do I interpret this output? are the effects given in each row the effects on the absolute log-odds of that outcome? I.e., mugeneral_read describes the effect of read on the log-odds of prog == “general”? I didn’t find any further documentation on this.