A function that extracts coefficients from mediation and outcome model.
get_coef(res_SMAHP)
Arguments
res_SMAHP: Outputs from SMAHP
Returns
A data frame which includes the name of exposure and mediator with coefficients from mediation and outcome model. - beta1: The coefficient estimate of exposure in mediation model
beta2: The coefficient estimate of mediator in outcome model
beta3: The coefficient estimate of exposure in outcome model