# mediateP v0.1.0

0

0th

Percentile

## Mediation Analysis Based on the Product Method

Functions for calculating the point and interval estimates of the natural indirect effect (NIE), total effect (TE), and mediation proportion (MP), based on the product approach. We perform the methods considered in Chao Cheng, Donna Spiegelman, and Fan Li. (2020+) <https://github.com/chaochengstat/chaochengstat.github.io/blob/master/manuscript_Epidemiologic_Methods.pdf>.

## Functions in mediateP

 Name Description mediate_contY_binaM Mediation analysis function for continuous outcome and binary mediator Mediate_contY_binaM_bootci Using bootstrap to calculate the confidence intervals in the scenario of continuous outcome and binary mediator. mediate Mediation analysis based on the product method Mediate_contY_contM_bootci Using bootstrap to calculate the confidence intervals in the scenario of continuous outcome and continuous mediator. mediate_binaY_binaM Mediation analysis function for binary outcome and binary mediator mediate_binaY_contM Mediation analysis function for binary outcome and continuous mediator Mediate_binaY_binaM_bootci Using bootstrap to calculate the confidence intervals in the scenario of binary outcome and binary mediator. mediate_contY_contM Mediation analysis function for continuous outcome and mediator Mediate_binaY_contM_bootci Using bootstrap to calculate the confidence intervals in the scenario of binary outcome and continuous mediator. print.mediate Print mediation results No Results!