GenerateBootMatrix {GeneSelector} | R Documentation |
Generates an object of class BootMatrix to be used for RepeatRanking.
GenerateBootMatrix(x, y, replicates = 50, type = c("unpaired", "paired", "onesample"), maxties = NULL, minclassize = 2, balancedclass = FALSE, balancedsample = FALSE, control)
x |
Only needed if |
y |
|
replicates |
Number of bootstrap replicates to be generated. |
type |
One of |
maxties |
The maximum number of ties allowed per observation.
For example, |
minclassize |
If |
balancedclass |
If |
balancedsample |
Should balanced bootstrap (s. details) be performed ? |
control |
Further control arguments concerning the generation process of the bootstrap matrix, s. samplingcontrol. |
For the case that balancedsample=TRUE
, all other constraints
as imposed by maxties
, minclassize
and so on are ignored.
Balanced bootstrap (s. reference below) means that each observation
occurs equally frequently (with respect to all bootstrap replications).
An object of class BootMatrix
If the generation process (partially) fails, try to
reduce the constraints or change the argument control
.
No bootstrap sample will occur more than once, i.e. each replication is unique.
Martin Slawski
Anne-Laure Boulesteix
Davison, A.C., Hinkley, D.V. (1997)
Bootstrap Methods and their Application.
Cambridge University Press
GenerateFoldMatrix, RepeatRanking
## Load toy gene expression data data(toydata) ### class labels yy <- toydata[1,] ### Generate Boot Matrix, maximum number of ties=3, ### minimum classize=5, 30 replications: boot <- GenerateBootMatrix(y = yy, maxties=3, minclassize=5, repl=30)