Question on contr.equalprior function #645
Replies: 3 comments 1 reply
-
Question 1As specified in the docs, the For example, if you have a categorical predictor with 3 levels ( This is the same as setting the same scaled prior (only when the prior above is centered on 0!):
Question 2If you have priors on those custom contrasts, you might want to set priors on them directly instead of using But generally the answer to any "is it okay if..." is always it depends. Question 3
This is related to See
Adding chains/samples will smooth those out. |
Beta Was this translation helpful? Give feedback.
-
Hi Matt, Thanks for your (superfast!) response, it's very helpful! I am sorry for not specifying better what I’d already learned from the documentation. Question 1 So that’s where my question came from. And since the BF changed because of the different prior contrasts (of course, because the prior specifications changed), I got a bit confused how to know which one to pick:) I would be happy to contribute to updating the documentation on this issue, by the way. For me as a newbie, it would be helpful to add:
Question 2 So for the first contrast in the custom contrast matrix, like this:
However, this seems a bit excessive to me.. Was this also the way you meant it? Question 3 |
Beta Was this translation helpful? Give feedback.
-
Q1: Okay, thanks, then it's clear. I don't know why that issue comes up for me, but it's also not important for now.. |
Beta Was this translation helpful? Give feedback.
-
I have some questions regarding the contr.equalprior function, see the reprex below.
I run two brms models, m1 uses contr.equalprior and m2 uses contr.equalprior_pairs.
Question 1:
What is the exact difference between contr.equalprior_pairs and contr.equalprior, and based on which criteria should I choose one or the other? Both contr.equalprior and contr.equalprior_pairs give me equal priors - just with different values. However, these different values also mean that the BFs are different, so the choice seems important.
Question 2:
My intuition is that it is completely fine that the priors on the contrasts differ, as long as I don't start comparing contrasts with different priors. In other words, I can test ((unfam2-unfam3)-(fam2-fam3)) and ((unfam2-unfam3)-(unfam1-unfam2), but I can't compare ((unfam2-unfam3)-(unfam2-fam1)) because these two contrast comparisons have different priors.
In summary, my question: is it okay that the priors for different contrasts are different, if that is caused my the fact that for these contrasts I am comparing different combinations of levels of my factors, and as long as I don't compare contrasts that have different priors? And if not, is there a way to force the priors to be the same for an entire custom contrast matrix?
Question 3
I have two additional questions:
NOTE: Results may be misleading due to involvement in interactions
. Is this a problem for the contrasts I am comparing?Created on 2024-03-08 with reprex v2.0.2
Beta Was this translation helpful? Give feedback.
All reactions