BS1125 / CMAverse

A suite of functions for reproducible causal mediation analyses
https://bs1125.github.io/CMAverse/
48 stars 12 forks source link

Control for different confounders of the treatment-outcome and mediator-outcome relationships #58

Open alexocampo907 opened 2 months ago

alexocampo907 commented 2 months ago

I have different back-door adjustment sets for the treatment-outcome and mediator-outcome relationships. I don't think there is a way to specify this in cmest().

Another small question, how is the 95% CI and p-value calculated for the proportion mediated (pm) when estimation = "paramfunc" and inference = "delta"?

BS1125 commented 2 months ago

Hi, you can set yreg and mreg to the regression models with corresponding confounders. The CI and p-value are calculated by the delta method when inference = 'delta'.