mediateP v0.1.0
0
Monthly downloads
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! |
Last month downloads
Details
Type | Package |
License | GPL |
Encoding | UTF-8 |
LazyData | true |
RoxygenNote | 7.1.1 |
NeedsCompilation | no |
Packaged | 2021-01-08 20:10:09 UTC; chaocheng |
Repository | CRAN |
Date/Publication | 2021-01-13 11:30:02 UTC |
imports | boot |
depends | R (>= 3.6.0) |
Contributors | Chao Cheng |
Include our badge in your README
[](http://www.rdocumentation.org/packages/mediateP)