A function to calculate the distance for a survivial endpoint.
A data frame with time in first column and censor in second column.
This function calculates the distance matrix for a censored event-time variable. The calculation is based on the formula in Section 2.4 of Cao and Pounds (2021). The distance metric for censored event-time data is based on the rank-based association statistic for this type of data proposed by Jung et al (2005).
A square matrix with nrow and ncol equal to the nrow of stime.evnt. Entry (i,j) of the result matrix gives the survival distance between subjects represented in rows i and j of stime.evnt.
Cao X and Pounds S (2021) Gene-Set Distance Associations (GSDA): A Powerful Tool for Gene-Set Association Analysis.
Jung SH, Owzar K, and George SL (2005) A mutiple testing procedure to associate gene expression levels with survival. Statistics in Medicine 24: 3077-88.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.