CompreCoxCstat: Compare Cox Models

View source: R/compare_cox.R

CompreCoxCstatR Documentation

Compare Cox Models

Description

Compares Cox models based on two sets of predictors with respect to their C-statistics via K-fold cross validation.

Usage

CompreCoxCstat(status, time, x1, x2, folds = 10, simple_cstat = TRUE)

Arguments

status

Event status.

time

Event time.

x1

Model matrix for the first model.

x2

Model matrix for the second model.

folds

Cross validation folds.

simple_cstat

If TRUE uses the unweighted C-stat, otherwise uses the inverse probability of censoring weighted C-stat.


zrmacc/SurvUtils documentation built on Sept. 28, 2024, 8:43 a.m.