repartition
Repartition data for cross-validation
Description
creates a cnew
= repartition(c
)cvpartition
object cnew
that
defines a random partition of the same type as c
, where
c
is also a cvpartition
object. That is,
repartition
takes the same observations in c
and
repartitions them into new training and test sets.
Examples
Input Arguments
Tips
Repartitioning is useful for Monte Carlo repetitions of cross-validation analyses.
crossval
callsrepartition
when you specify theMCReps
name-value argument.
Version History
Introduced in R2008a