Skip to Main Content

mediateP

An R package for implementing the product method for mediation analysis.

Based on the product method, this package provides R functions for calculating the point and interval estimates for the natural indirect effect and mediation proportion, two pivotal quantities of interest in mediation, under four data types that are commonly encountered in epidemiologic studies.