WeightedCstat | R Documentation |
Calculate the C-statistic in the presence of censoring using the method of: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3079915/.
WeightedCstat(
train_data,
test_data,
risk_name = "risk",
status_name = "status",
tau = NULL,
time_name = "time"
)
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. |
Data.frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.