Specifying correct priors for factors #436
Replies: 1 comment 1 reply
-
Hmm... Re-reading what I wrote, I think that can be better clarified. Let's try... We need to keep in mind that Okay, let's see: Treatment codingIf you are only interested in is just those two contrasts (comparing each group to the "control"), treatment coding would be fine - it is a reasonable parameterization of your problem / question. However, if you wanted to compare the two experimental conditions to each other, this difference will have a different prior shape. In trt coding we have a (intercept = control's mean) b1 (diff to group2) and b2 (diff to group3).
The pairwise diffs are:
That is, the prior on {Exp1 - Exp2} is more spread out than the other two contrasts, leading to a bias in any prior-based metric - Bayes factors are esp sensitive to this, but to an extent so are the posteriors and any posterior-based metric. (It can be shown that a similar bias happens with effects coding as well.) Solutions for modelling factors
You can read about the latter two and how to do them in brms in Solomon Kurz's great post. |
Beta Was this translation helpful? Give feedback.
-
Question and context
First, I want to say thank you for developing such a fantastic package which is so well documented and accessible.
I just have a hopefully simple clarification question on an issue raised by the bayes factor vignette which states:
Does it follow that, for situations where treatment coding is preferred (i.e. one would like to separately contrast two "experimental" conditions to a "control" condition), that another potential solution is to place the same prior on the intercept and effect's parameter?
Cheers -
Beta Was this translation helpful? Give feedback.
All reactions