Est.Cval {survC1} | R Documentation |
Esimtation of C
Description
Performs a point estimation of C
Usage
Est.Cval(mydata, tau, nofit=FALSE)
Arguments
mydata |
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 |
nofit |
If |
Value
Dhat |
Estimate of C |
beta |
Estimates for regression coefficient in the Cox model |
beta.var |
Variance-Covariance matrix for |
rs |
Risk score of each individial |
ft |
|
Examples
D=CompCase(pbc[1:200,c(2:4,10:14)])
D[,2]=as.numeric(D[,2]==2)
tau=365.25*8
model=D[,c(1,2,4,5)]
Est.Cval(model, tau)$Dhat