mlma-package {mlma} | R Documentation |
Multilevel Mediation Analysis
Description
The package is used to do mediation analysis with generalized multilevel models.
Details
"data.org"
is used to transform the variables and organize the predictor, mediators and outcome into the format that are ready to be used for multilevel mediation analysis. "mlma"
is for multilevel mediation analysis on the original data set. "boot.mlma"
is a combined function that organized data set, do multilevel mediation analysis on original data sets and bootstrapping samples.
The multilevel mediation is based on the following linear multilevel additive models:
Yij=u0jY(X.j,M.j,Z.j)+β10YTf10Y(Xij−X.j)+∑k=1Kβ20kYTf20kY(Mijk−M.jk)+β30YT(Zij−Z.j)+rijY,
where
u0jY(X.j,M.j,Z.j)=c00Y+β01YTf01Y(X.j)+∑k=1Kβ02kYTf02kY(M.jk)+β03YTZ.j+r0jY.
For k=1,…,K,
M.jk=u0jkM(X.j)+β10kMTf10kM(Xij−X.j)+rijkM,
u0jkM(X.j)=c00kM+β01kMTf01kM1(X.j)+r0jkM.
If for some k, Mk
is level 2 variable,
M.jk=c00kM+β01kMTf01kM2(X.j)+r0jkM.
Note that in the models, f(⋅)=(f1(⋅),f2(⋅),⋯,fl(⋅))T
is a set of l transformation functions on ⋅
, with the corresponding linear coefficients vector β=(β1,β2,⋯,βl)T
. f
and l are known for model fitting. l may be different with f
of different sub- and super-scripts.
Author(s)
Qingzhao Yu qyu@lsuhsc.edu, Bin Li bli@lsu.edu
Maintainer: Qingzhao Yu qyu@lsuhsc.edu
References
Yu, Q. and Li, B., (2020). <doi:10.1371/journal.pone.0241072>. "Third-Variable Effect Analysis with Multilevel Additive Models," PLoS ONE 15(10): e0241072.
Yu, Q., Yu, M., Zou, J., Wu, X., Gomez, SL, Li, B. (2021). <doi:10.1177/26320843211061292>. "Multilevel Mediation Analysis on Time-to-Event Outcomes - Exploring racial/ethnic Disparities in Breast Cancer Survival in California," Research Methods in Medicine & Health Sciences.
Yu, Q. and Li, B., 2022. Statistical Methods for Mediation, Confounding and Moderation Analysis Using R and SAS. Chapman and Hall/CRC. ISBN 9780367365479.
[Package
mlma version 6.3-1
Index]