Input data. The 1st column should be time-to-event, and the 2nd column is event indicator (1=event, 0=censor). The rest of the columns are covariates/predictors used in the model. No character variable or missing is allowed.
tau
Truncation time. The resulting C tells how well the given prediction model works in predicting events that occur in the time range from 0 to tau. Note that the survival function for the underlying censoring time distribution needs to be positive at tau.
nofit
If TRUE, the 3rd column of mydata is used as the risk score directly in calculation of C. The default is FALSE.
Value
Dhat
Estimate of C
beta
Estimates for regression coefficient in the Cox model