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

Does medsens function support the sensitivity analysis of causal mediation analysis with multilevel data? #60

Open
minhengw opened this issue Aug 15, 2023 · 2 comments

Comments

@minhengw
Copy link

Hi, does medsens function support the sensitivity analysis of causal mediation analysis with multilevel data? Thank you so much!


Due to the essence of multilevel data, I use lmer function to obtain med.fit and out.fit. Then, use these two outputs as inputs of the mediate function to get med.out. Finally, I try to use medsens function to perform the sensitivity analysis.

However, I get the error message below:

Error in medsens(med.out, rho.by = 0.1, effect.type = "indirect", sims = 100) :
mediate object fitted with non-supported model combinations

thx!

@tingleyd
Copy link
Collaborator

tingleyd commented Aug 15, 2023 via email

@minhengw
Copy link
Author

thanks!

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