Learn R Programming

maxEff (version 0.2.2)

statusPartition: Stratified Partition

Description

A variation of createDataPartition, to split Surv \(y\) by survival status instead of the percentiles survival time.

Usage

statusPartition(y, times, p = 0.8, ...)

Value

Function statusPartition() returns a length-\(n\)

listof

integer

vectors. In each integer

vector indicates the training subjects.

Arguments

y

response \(y\), a Surv object

times

positive integer scalar \(n\), number of replicates of partitions. Default 1L.

p

double scalar between 0 and 1, percentage \(p\) of training subjects, default .8

...

additional parameters, currently not in use

Details

See vignette('intro', package = 'maxEff').