if(require(sparsediscrim))
{
# Samples in one class with differential variability to other class.
genesMatrix <- sapply(1:25, function(geneColumn) c(rnorm(100, 9, 1)))
genesMatrix <- cbind(genesMatrix, sapply(1:25, function(geneColumn) rnorm(100, 9, 4)))
classes <- factor(rep(c("Poor", "Good"), each = 25))
leveneSelection(genesMatrix, classes,
trainParams = TrainParams(), predictParams = PredictParams(),
resubstituteParams = ResubstituteParams(nFeatures = seq(10, 100, 10),
performanceType = "balanced", better = "lower"))
}
Run the code above in your browser using DataLab