Description Usage Arguments Value Examples
Train and test logistic regression classifier.
1 2 3 4 5 6 7 8 | tune_logistic(
training_data,
testing_data,
save_model = TRUE,
model_name = paste0("opioid_logistic_model_", Sys.Date()),
target = "opioid",
features = "defaults"
)
|
training_data |
formatted EMS data for model training |
testing_data |
formatted EMS data for model training |
save_model |
Logical flag to save model as .RDS object |
model_name |
Filepath and name of model to save, .RDS extension not needed |
target |
Binary (0/1) for class labels |
features |
Character vector of features, "default" for recommended options |
List object with model and test data with predictions
model - Fitted GLM object
results - Test data with predictions
1 | ## Not run: tune_logistic(training_data = train, testing_data = test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.