mrMed | R Documentation |
mrMed includes several methods to perform MR-based mediation analysis and provides corresponding estimates of the total effect (TE), direct effect (DE), indirect effect (IE), and mediation proportion (rho).
mrMed(dat_mrMed, method_list=c("Diff_IVW","Prod_IVW","Prod_Median"))
dat_mrMed |
dataframe, the required format are refered to the examples |
method_list |
vector of characters, name(s) of the MR-based mediation methods |
TE |
Results for the total effect including point estimate (b), standard error of the estimate (se), p-value (pval), and the upper bound and lower bound of 95% confidence interval. |
DE |
Results for the direct effect including point estimate (b), standard error of the estimate (se), p-value (pval), and the upper bound and lower bound of 95% confidence interval. |
IE |
Results for the indirect effect including point estimate (b), standard error of the estimate (se), p-value (pval), and the upper bound and lower bound of 95% confidence interval. |
rho |
Results for the mediation proportion including point estimate (b), standard error of the estimate (se), p-value (pval), and the upper bound and lower bound of 95% confidence interval. |
Shu-Chin Lin
Causal Mediation Analysis: A Summary-Data Mendelian Randomization Approach
data(WHR_T2D_CAD) mrMed(dat_mrMed=WHR_T2D_CAD, method_list=c("Diff_IVW","Prod_IVW","Prod_Median"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.