get_pairs function

A function that returns mediation-exposure matrix

A function that returns mediation-exposure matrix

A function that returns final mediation-exposure matrix.

get_pairs(res_SMAHP)

Arguments

  • res_SMAHP: Outputs from SMAHP

Returns

Mediation-exposure matrix.

Examples

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)
  • Maintainer: Weijia Fu
  • License: GPL-3
  • Last published: 2025-03-24

Useful links