Learn R Programming

⚠️There's a newer version (0.2.0) of this package.Take me there.

mediateP (version 0.1.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 Chao Cheng, Donna Spiegelman, and Fan Li. (2020+) .

Copy Link

Version

Install

install.packages('mediateP')

Monthly Downloads

173

Version

0.1.0

License

GPL

Maintainer

Chao Cheng

Last Published

January 13th, 2021

Functions in mediateP (0.1.0)

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