Short summary of the problem
I am running a simple logistic regression with an interaction between between two categorical variables, one with five categories and the other binary. The conditional_effects() command displays the bars for the reference category first, but I want to change the order that the bars appear. Is there a way to do that?
fit <- brms(y ~ x1*x2, family=‘bernoulli’, data=dat)
x1 has five levels, (0, 1, 2, 3, 4), and the reference category is 2. Currently, the bars are plotted in the order of 2 0 1 3 4. I would like to have them shown from 0 to 4. Is this possible without having to change the reference category to 0?
Please also provide the following information in addition to your question:
- Operating System: Windows 10
- brms Version: 2.12.0
Looking forward to your topic!