Learn R Programming

SMAHP (version 0.0.5)

get_pairs: A function that returns mediation-exposure matrix

Description

A function that returns final mediation-exposure matrix.

Usage

get_pairs(res_SMAHP)

Value

Mediation-exposure matrix.

Arguments

res_SMAHP

Outputs from SMAHP

Examples

Run this code
# \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_pairs(res_SMAHP)
# }

Run the code above in your browser using DataLab