-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How to represent an effect modifier? #100
Comments
There is no "right way" to express interaction/effect modification because it's a matter of functional form. People have tried many ways of representing when they think there is such an interaction, the example you show being just one of them. None have taken off as "the" way. Often, in a causal structure, when there is not interaction on one scale (E.g., multiplicative), there is on another (e.g., additive) That said, if you are an R user, you could represent this in ggdag with a little data manipulation by creating a fake node at the edge and then not visualizing it or using |
Understood, thanks for the detailed explanation. How does this affect the adjustment rules that are suggested by daggity? |
It doesn't unless you assume the two variables you think interact are joint causes (instead of the genuinely functional form case where there are differences across a treatment effect by a second variable, but you don't think it is causal). In that case, you can treat them as multiple exposures. |
Thank you! Just to confirm, the adjustment rules for an Effect Modifier and a Secondary Exposure are the same, right? I've not been able to find a difference when I was learning. |
From what I am aware, the correct way to represent an effect modifier is using 'arrow-on-arrow', as below:
Source: https://pmc.ncbi.nlm.nih.gov/articles/PMC2235194/
However, I'm not able to do this in dagitty. Could you please advise on how to do the same?
The text was updated successfully, but these errors were encountered: