Using SAS Macros for Multiple Mediation Analysis in R
Author(s) -
Paige L. Fisher,
Wentao Cao,
Qingzhao Yu
Publication year - 2020
Publication title -
journal of open research software
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.385
H-Index - 6
ISSN - 2049-9647
DOI - 10.5334/jors.277
Subject(s) - mediation , macro , computer science , generalized linear model , design matrix , variable (mathematics) , r package , variables , smoothing , econometrics , regression analysis , statistics , mathematics , machine learning , programming language , political science , law , mathematical analysis , computer vision
Mediation analysis refers to the process of making inferences on effects of third variables that intervene in the relationship between an exposure and response variable. The relationships among variables can be modelled by generalized linear models (GLM). However, GLM are not sufficient to describe relationships among variables when there are nonlinear relationships and potential interaction effects. A general mediation analysis method was developed using not only GLMs, but also multiple additive regression trees and smoothing splines by Yu and Li (2017). The method is implemented in the R package, mma . In this paper, we developed SAS macros so that functions in the mma package can be called and the mediation analysis performed in the SAS environment.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom