Estimate of all levels of categorical variable from brm summary

I was wondering how to interpret the estimate for categorical variables that I get with brms - there is only one of my two factor levels attached to a response. How can I get estimates for the other level?

Sorry for being uninformed, I’m probably missing something really obvious here (linear combination of the other variables?). Is this what is meant by "reference category! as described here?

This is my model, a reduced version of a path analysis. Food has two levels and I am trying to figure which one does what to survival, taking other metrics into account.

Model specs:

brm(bf(Survival ~ Food + Length + Pigmentation) +
              bf(Length ~ Food),
            family=gaussian,
            data = f,
            chains=4, cores=8,seed=17, iter=1000, warmup = 500, thin = 10, inits=0, silent=F,
            prior=prior(normal(0, 1), b),
            save_all_pars=T,control = list(adapt_delta = 0.99,max_treedepth=20)

Model output:

 Family: MV(gaussian, gaussian) 
  Links: mu = identity; sigma = identity
         mu = identity; sigma = identity 
Formula: Survival ~ Food + Length + Pigmentation 
         Length ~ Food 
   Data: f (Number of observations: 58) 
Samples: 4 chains, each with iter = 1000; warmup = 500; thin = 10;
         total post-warmup samples = 200

Population-Level Effects: 
                        Estimate Est.Error l-95% CI u-95% CI Eff.Sample Rhat
Survival_Intercept         -0.01      0.10    -0.23     0.18        184 1.00
Length_Intercept           -0.01      0.10    -0.21     0.17        196 1.01
Survival_FoodLowprotein     0.01      0.14    -0.25     0.30        227 0.99
Survival_Length             0.24      0.69    -1.10     1.62        236 0.99
Survival_Pigmentation       0.14      0.14    -0.16     0.42        262 0.99
Length_FoodLowprotein       0.01      0.14    -0.28     0.29        205 1.01

Family Specific Parameters: 
               Estimate Est.Error l-95% CI u-95% CI Eff.Sample Rhat
sigma_Survival     0.56      0.16     0.38     0.90        156 1.00
sigma_Length       0.52      0.05     0.43     0.63        189 1.01

Residual Correlations: 
                        Estimate Est.Error l-95% CI u-95% CI Eff.Sample Rhat
rescor(Survival,Length)     0.14      0.52    -0.82     0.88        245 0.99

Samples were drawn using sampling(NUTS). For each parameter, Eff.Sample 
is a crude measure of effective sample size, and Rhat is the potential 
scale reduction factor on split chains (at convergence, Rhat = 1).
  • Operating System: Ubuntu 18.04
  • brms Version: 2.6.0
1 Like

The reference category of your two-level categorical predictor “Food” is captured in the intercept. The coefficient for Food is simply the estimated difference between the two levels, corrected for the impact of other predictors (if any).

Or I’m misunderstanding your q

Yes, I think that’s what I mean.

So “Survival_Intercept” and “Length_Intercept” are reference categories for Food, and “Survival_FoodLowprotein” and “Length_FoodLowprotein” are estimates for differences between both factor levels within each response?

Not exactly, the intercept is the predicted mean of the response when all other predictors have the value “0” (or are at reference level, for factors). The estimates of your factor Food are the effect of the given category (FoodLowprotein) compared to the reference level of Food.

1 Like

Do you mind posting exactly how the original model is specified for reproduction? Curious how this is put together. Thanks.

Now it’s clear - thanks!

@Petulla I’ve added the model specs to the post

1 Like