Skip to contents

Cox regression estimating interaction effect between biomaker and treatment

Usage

wrapper_cox_regression_interaction(
  data,
  tte_var,
  censor_var,
  treatment_var,
  biomarker_vars,
  adjustment_vars = NULL,
  strata_vars = NULL,
  strat1_var = NULL,
  strat2_var = NULL,
  variable_names = NULL,
  caption = NULL,
  print_pvalues = TRUE,
  print_adjpvalues = TRUE
)

Arguments

data

Data frame.

tte_var

Name of the time-to-event variable. This variable must be numeric.

censor_var

Name of the censor variable. It has to be numeric and encode 1 for event and 0 for censor.

treatment_var

Name of column with treatment information.

biomarker_vars

Vector of biomarker names.

adjustment_vars

Vector of covariate names used for adjustment.

strata_vars

Vector with names of covariates that are used as strata.

strat1_var

Name of the second stratification variable.

strat2_var

Name of the second stratification variable used for splitting the data.

variable_names

Named vector with variable names. If not supplied, variable names are created by replacing in column names underscores with spaces.

caption

Caption for the table with results.

print_pvalues

Logical. Whether to print p-values.

print_adjpvalues

Logical. Whether to print adjusted p-values.