WeightedCstat: Calculate Weighted Concordance

View source: R/cstat.R

WeightedCstatR Documentation

Calculate Weighted Concordance

Description

Calculate the C-statistic in the presence of censoring using the method of: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3079915/.

Usage

WeightedCstat(
  train_data,
  test_data,
  risk_name = "risk",
  status_name = "status",
  tau = NULL,
  time_name = "time"
)

Arguments

train_data

Data for estimating the censoring distribution. Should include status and time.

test_data

Data for evaluating the risk score. Should include risk, stats, and time.

risk_name

Name of the risk column.

status_name

Name of status column.

tau

Truncation time.

time_name

Name of time column.

Value

Data.frame.


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