View source: R/statusPartition.R
statusPartition | R Documentation |
A variation of createDataPartition,
to split Surv y
by survival status
instead of the percentiles survival time.
statusPartition(y, times, p = 0.8, ...)
y |
response |
times |
positive integer scalar |
p |
double scalar between 0 and 1,
percentage |
... |
additional parameters, currently not in use |
See vignette('intro', package = 'maxEff')
.
Function statusPartition()
returns a length-n
listof
integer vectors.
In each integer vector indicates the training subjects.
Function caTools::sample.split
is not what we need.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.