Split conditional_effects plot in facets according to the value of the categorical DV

Hi @Elisa and welcome to the Stan forums.

For categorical models like this, conditional_effects() returns a data frame with a cats__ variable that you can use:

ce <- conditional_effects(fit, categorical = TRUE)
str(ce[[1]])  # See what variables are available
plot(ce)[[1]] +
  facet_wrap("cats__")
5 Likes