Multivariable Logistic Regression (4-layer models)
Source:R/02_multivariable.R
run_multivariable_logistic_regression.RdMultivariable Logistic Regression (4-layer models)
Usage
run_multivariable_logistic_regression(
data,
outcomes,
predictors,
models_list,
outcomes_map = NULL,
predictors_map = NULL,
output_dir = NULL,
save_format = c("none", "docx", "csv")
)Arguments
- data
Data frame
- outcomes
Outcome variables (character vector)
- predictors
Predictor variables (character vector)
- models_list
Named list of length 3 with covariates for model2, model3, model4
- outcomes_map
Optional named mapping from outcome variable names to display labels, e.g. c("A_B" = "A B").
- predictors_map
Optional named mapping from predictor variable names to display labels.
- output_dir
Output directory (optional, default no file saving)
- save_format
Save format: "none", "txt", "csv" (default "none")