Skip to content
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

Open
AhmedThahir opened this issue Nov 21, 2024 · 4 comments
Open

Question: How to represent an effect modifier? #100

AhmedThahir opened this issue Nov 21, 2024 · 4 comments

Comments

@AhmedThahir
Copy link

AhmedThahir commented Nov 21, 2024

From what I am aware, the correct way to represent an effect modifier is using 'arrow-on-arrow', as below:

image
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?

@malcolmbarrett
Copy link
Contributor

malcolmbarrett commented Nov 21, 2024

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 annotate() to stamp an arrow on the plot where you want it

@AhmedThahir
Copy link
Author

Understood, thanks for the detailed explanation.

How does this affect the adjustment rules that are suggested by daggity?

@malcolmbarrett
Copy link
Contributor

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.

@AhmedThahir
Copy link
Author

AhmedThahir commented Nov 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants