Learn R Programming

RGS (version 1.0)

evaluate_model_logistic: Evaluate logistic regression model with cutoffs

Description

This function evaluates the logistic regression model by creating exposure variables based on the cutoffs and fitting the model.

Usage

evaluate_model_logistic(my_data, cutoffs, formula)

Value

A dataframe summarizing the model evaluation metrics.

Arguments

my_data

A dataframe containing the data.

cutoffs

A list of dataframes containing the cutoffs for each variable.

formula

An object of class "formula" describing the model structure.