Description Usage Arguments Examples

View source: R/FUN-cstat-ver003b.R

Provides a cross-validation estimate for C

1 | ```
cvC(mydata, tau, cvK = 10, Rep = 10)
``` |

`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 |

`cvK` |
The number of fold. A K-fold cross-validation is performed, according to the number given for |

`Rep` |
The number of iteration of the random splits for the K-fold cross-validation. The average of the |

1 2 3 4 5 6 7 8 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.