powered by
A function that extracts coefficients from mediation and outcome model.
get_coef(res_SMAHP)
A data frame which includes the name of exposure and mediator with coefficients from mediation and outcome model.
The coefficient estimate of exposure in mediation model
The coefficient estimate of mediator in outcome model
The coefficient estimate of exposure in outcome model
Outputs from SMAHP
# \donttest{ data(example_dat) surv_dat <- example_dat$surv_dat res_SMAHP <- SMAHP(example_dat$X, example_dat$M, example_dat$C, time = surv_dat$time, status = surv_dat$status) get_coef(res_SMAHP) # }
Run the code above in your browser using DataLab