Skip to contents

Logistic regression estimating effect of interaction between biomarker and treatment

Usage

wrapper_logistic_regression_interaction(
  data,
  response_var,
  treatment_var,
  biomarker_vars,
  adjustment_vars = NULL,
  strat1_var = NULL,
  strat2_var = NULL,
  variable_names = NULL,
  caption = NULL,
  print_pvalues = TRUE,
  print_adjpvalues = TRUE
)

Arguments

data

Data frame.

response_var

Name of the response variable. This variable must be a factor where 'success' is interpreted as the factor not having the first level.

treatment_var

Name of the variable with treatment information.

biomarker_vars

Vector of biomarker names.

adjustment_vars

Vector of covariate names used for adjustment.

strat1_var

Name of the second stratification variable.

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.