Description Usage Arguments Value Warning Author(s)
To ensure the applicability of Cox regression, the function splits the samples randomly and assigns at least one deceased or relapsed patient to the training and testing sets.
1 | shuffle.samples(n, censor, train.nb)
|
n |
Sample size of the complete data set. |
censor |
Vector of censoring status. 1 = event occurred, 0 = censored. |
train.nb |
Number of samples in the training set. |
List of two vectors, the indices of the training set and the indices of the testing set.
This function is not called by the user directly.
Haleh Yasrebi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.