Logistic regression estimating treatment effect within biomarker subgroups
wrapper_logistic_regression_treatment.Rd
Logistic regression estimating treatment effect within biomarker subgroups
Usage
wrapper_logistic_regression_treatment(
data,
response_var,
treatment_var,
biomarker_vars = 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.
- treatment_var
Name of column with treatment information.
- 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.