Description Usage Arguments Details Value References Examples
Compute concordance index (Cindex or Cstatistic) that allows weights for rightcensored survival data. For example, Asano and Hirakawa (2017) proposed cure status weighting for cure models, which reduces to Harrell's Cindex if weighs are all ones.
1 
time 
A numeric vector for observed times 
event 
A numeric vector for event indicators. If it is 
risk_score 
A numeric vector representing the risk scores of events. 
weight 
A optional numeric vector for weights. If it is 
Let r_i, t_i, and δ_i denote the risk score, observed time, and event indicator of ith subject. The pair of (t_i,δ_i) and (t_j,δ_j), where i<j, are defined to be comparable if t_i<t_j,δ_i=1 or t_i=t_j,δ_i=1,δ_j=0. In the context of survival analysis, the risk scores of a comparable pair are said to be concordant with the survival outcomes if r_i>r_j. The Cindex is defined as the proportion of the concordant pairs among the comparable pairs. For comparable pair satisfying t_i<t_j,δ_i=1, we count 0.5 in the numerator of the concordance index for tied risk scores (r_i=r_j).
A named numeric vector that consists of
index
: the concordance index.
concordant
: the number of concordant pairs.
comparable
: the number of comparable pairs.
tied_tisk
: the number of comparable pairs having tied risks.
Asano, J., & Hirakawa, A. (2017). Assessing the prediction accuracy of a cure model for censored survival data with longterm survivors: Application to breast cancer data. Journal of Biopharmaceutical Statistics, 27(6), 918–932.
Harrell, F. E., Lee, K. L., & Mark, D. B. (1996). Multivariable prognostic models: Issues in developing models, evaluating assumptions and adequacy, and measuring and reducing errors. Statistics in medicine, 15(4), 361–387.
1  ## See examples of function 'cox_cure'.

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.