Skip to contents

Logistic regression with additive model with interaction

Usage

wrapper_logistic_regression_core_interaction(
  data,
  response_var,
  interaction1_var,
  interaction2_var,
  covariate_vars = NULL,
  variable_names = NULL,
  caption = NULL,
  print_pvalues = TRUE,
  print_adjpvalues = TRUE
)

wrapper_logistic_regression_core_interaction_strat(
  data,
  response_var,
  interaction1_var,
  interaction2_var,
  covariate_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.

interaction1_var

Name of the first interaction variable.

interaction2_var

Name of the second interaction variable.

covariate_vars

Vector with names of covariate that should be included in the formula.

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.

strat1_var

Name of the second stratification variable.