params_med_cox: Set parameters controlling Cox model estimation of mediation...

View source: R/params.R

params_med_coxR Documentation

Set parameters controlling Cox model estimation of mediation effects

Description

This should be used in conjunction with est_med to set parameters controlling Cox model estimation of mediation effects; see examples.

Usage

params_med_cox(edge_ind = F)

Arguments

edge_ind

Boolean. If TRUE, an indicator variable corresponding to the lower limit of the marker will be included in the Cox model linear predictor.

Value

A list of options.

Examples

data(hvtn505)
dat <- load_data(time="HIVwk28preunblfu", event="HIVwk28preunbl", vacc="trt",
                 marker="IgG_V2", covariates=c("age","BMI","bhvrisk"),
                 weights="wt", ph2="casecontrol", data=hvtn505)

ests_med <- est_med(
  dat = dat,
  type = "Cox",
  t_0 = 578,
  params_np = params_med_cox(edge_ind=TRUE)
)


vaccine documentation built on July 5, 2026, 5:07 p.m.