k_index: K-index estimation

View source: R/k_index.R

k_indexR Documentation

K-index estimation

Description

K-index estimation

Usage

k_index(object, newdata = NULL, ncv = NULL)

Arguments

object

a cureit model object

newdata

A base::data.frame() or tibble::tibble() containing all the original predictors used to create object. Defaults to NULL.

ncv

number of folds for cross validation. Defaults to NULL. If specified, newdata will be ignored and cross-validated k-index will be reported.

Examples

p <- cureit(surv_formula = Surv(ttdeath, death) ~ age, 
   cure_formula = ~ age,
   data = trial) 
k_index(p)

karissawhiting/cure-pipeline documentation built on Aug. 18, 2024, 1:22 a.m.