Hi,
sorry for taking too long to respond. Unfortunately you have not provided a lot of details about your data - especially what values does confidence
attain. The full model output could also have been useful, so I’ll be operating from a bit of guesswork (don’t worry, I don’t think it is likely to matter a lot). My best guess is that confidence
is a numerical variable and that condition
is a factor with values 0, 1, 2
.
The important thing to notice is that brms
(as basically any other linear regression package) uses “Dummy coding” for factors/booleans. To make stuff less confusing, I will use condition
to mean value of the condition
variable in data and b_condition
as the coefficient brms
uses. So for the confidence * condition
your data gets recoded for the model as (using cond
for condition
and cnf
for confidence to make the table smaller):
Orig. data | Data for model
==================================================================
cnf cond | Intercept cnf cond1 cond2 cnf:cond1 cnf:cond2
0.3 "0" | 1 0.3 0 0 0 0
0.6 "0" | 1 0.6 0 0 0 0
0.21 "1" | 1 0.21 1 0 0.21 0
0.4 "1" | 1 0.4 1 0 0.4 0
0.74 "2" | 1 0.74 0 1 0 0.74
0.66 "2" | 1 0.66 0 1 0 0.66
The model than has one coefficient for each column in the “Data for model part” (and then one coefficient per subject for the varying part).
This is why you see only confidence:condition1
and confidence:condition2
in your summary - this is how the model sees the data and this is why only those terms are included in the correlations you model.
So while the confidence
coefficient can be easily interpreted in this model as the “effect” of confidence
for condition
0, confidence:condition1
is not the effect of confidence
for condition
1 - to get this effect, you need to add confidence + confidence:condition1
.
So if you really need to know the correlation across all three conditions (which is not a natural quantity in the model), you can either use some linear algebra to account for the need to sum the coefficients, or - possibly more easily - you can interpret model via its predictions. I answered a similar question at Multivariate model interpreting residual correlation and group correlation but feel free to ask for clarifications here, if it is not clear.
Best of luck with your model!