mediator
mediator copied to clipboard
Causal mediation analysis in R
Thank you very much for providing this valuable package. I have a continuous treatment variable, namely BMI. How should I define the treatment and control values? For example, in the...
Hi, The output from the mediator function doesn't show the 95% CI for proportion mediated even when I specify pm_ci = TRUE. Is there a workaround for this? Thanks, Elvis
How can I perform a mediation analysis with a continuous treatment. I want to esimate indirect effect when exposure increase 1 unit instead of specifying control.value and treat.value.
To Do
- [x] Allow character covariates - currently only work with numeric - [ ] Find public dataset for paper and to include in /data - [ ] Version number -...
Need to add example dataset that @tgerke is working on for mediator into `data/`
Proportion mediated differs largely from the values from SAS when there is no interaction between exposure and mediator. See tests-no-interaction. However the PM from SAS doesnt necessarily make sense either....