kosukeimai / mediation

R package mediation
56 stars 28 forks source link

multiple imputation + moderated mediation #38

Open kaisarea opened 2 years ago

kaisarea commented 2 years ago

Hello, thank you for making this great package!

I have a dataset with missing values so I am using the mediations() and amelidiate() functions. At the same time, I would also like to test whether the mediated effect differs by demographic so I would like to use the test.modmed() function. Can they be somehow used together?

tingleyd commented 2 years ago

I don't believe test.modmed() works out of the box with the multiple imputation workflow. But you can easily see how it works and modify it.