Learn R Programming

mediateP (version 0.2.0)

Mediation Analysis Based on the Product Method

Description

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 Cheng, Spiegelman, and Li (2021) Estimating the natural indirect effect and the mediation proportion via the product method.

Copy Link

Version

Install

install.packages('mediateP')

Monthly Downloads

167

Version

0.2.0

License

GPL

Maintainer

Chao Cheng

Last Published

February 5th, 2022

Functions in mediateP (0.2.0)

print.mediate

Print mediation results
Mediate_binaY_contM_bootci

Using bootstrap to calculate the confidence intervals in the scenario of binary outcome and continuous mediator.
mediate_binaY_contM

Mediation analysis function for binary outcome and continuous mediator
mediate_binaY_binaM

Mediation analysis function for binary outcome and binary mediator
mediate

Mediation analysis based on the product method
mediate_contY_binaM

Mediation analysis function for continuous outcome and binary mediator
mediate_contY_contM

Mediation analysis function for continuous outcome and mediator
Mediate_binaY_binaM_bootci

Using bootstrap to calculate the confidence intervals in the scenario of binary 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_contY_contM_bootci

Using bootstrap to calculate the confidence intervals in the scenario of continuous outcome and continuous mediator.