I have trouble finding help related to the interpretation of “categorical” models.
Let’s take the following simple model as an example:
library(brms)
library(ggplot2)
m <- brm(Species ~ Sepal.Length,
data=iris,
family=categorical(link="logit", refcat = "setosa"),
algorithm = "meanfield")
#> Warning: Pareto k diagnostic value is 0.71. Resampling is unreliable. Increasing
#> the number of draws or decreasing tol_rel_obj may help.
modelbased::estimate_relation(m, at="Sepal.Length", length = 30) |>
ggplot(aes(x = Sepal.Length, y = Predicted)) +
geom_line(aes(color = Response))

m
#> Family: categorical
#> Links: muversicolor = logit; muvirginica = logit
#> Formula: Species ~ Sepal.Length
#> Data: iris (Number of observations: 150)
#> Draws: 1 chains, each with iter = 1000; warmup = 0; thin = 1;
#> total post-warmup draws = 1000
#>
#> Population-Level Effects:
#> Estimate Est.Error l-95% CI u-95% CI Rhat Bulk_ESS
#> muversicolor_Intercept -23.73 2.21 -28.00 -19.52 1.00 1109
#> muvirginica_Intercept -37.77 1.94 -41.78 -34.10 1.00 1015
#> muversicolor_Sepal.Length 4.38 0.38 3.64 5.11 1.00 1091
#> muvirginica_Sepal.Length 6.63 0.33 6.00 7.31 1.00 993
#> Tail_ESS
#> muversicolor_Intercept 981
#> muvirginica_Intercept 994
#> muversicolor_Sepal.Length 872
#> muvirginica_Sepal.Length 994
#>
#> Draws were sampled using variational(meanfield).
Created on 2022-02-16 by the reprex package (v2.0.1)
The model includes 4 fixed parameters, 2 suffixed as _Intercept and 2 as the effect of the Sepal.Length predictor. The parameters are only pertaining two the non-reference categories (in this case virginica and versicolor).
My question is: are these parameters to be all interpreted as differences from their reference counterpart? Is it correct that:
-
muversicolor_Interceptis the difference between the intercept atsetosaand the one ofversicolor? -
muversicolor_Sepal.Lengthis the difference between the effect of Sepal.Length atsetosaand the one atversicolor?
Is there any way to infer say the effect of Sepal.Length at the reference level setosa?
Thanks for any clarification as to how to interpret these parameters.