get_pairs: A function that returns mediation-exposure matrix

View source: R/get_p.R

get_pairsR Documentation

A function that returns mediation-exposure matrix

Description

A function that returns final mediation-exposure matrix.

Usage

get_pairs(res_SMAHP)

Arguments

res_SMAHP

Outputs from SMAHP

Value

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)


SMAHP documentation built on April 4, 2025, 1:36 a.m.