Skip to contents

Logistic regression estimating biomarker effect

Usage

wrapper_logistic_regression_biomarker(
  data,
  response_var,
  biomarker_vars,
  treatment_var = NULL,
  adjustment_vars = NULL,
  strat2_var = NULL,
  variable_names = NULL,
  caption = NULL,
  print_total = TRUE,
  print_non_response = TRUE,
  print_pvalues = TRUE,
  print_adjpvalues = TRUE,
  print_OR = 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.

biomarker_vars

Vector of biomarker names.

adjustment_vars

Vector of covariate names used for adjustment.

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_total

Logical. Whether to print total number of samples.

print_pvalues

Logical. Whether to print p-values.

print_adjpvalues

Logical. Whether to print adjusted p-values.