Learn R Programming

RGS (version 1.0)

evaluate_model_cox: Evaluate model with cutoffs Evaluates the model by creating exposure variables based on the cutoffs and fitting a Cox model.

Description

Evaluate model with cutoffs Evaluates the model by creating exposure variables based on the cutoffs and fitting a Cox model.

Usage

evaluate_model_cox(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.