Learn R Programming

GenomicTools (version 0.2.9.7)

mdrEnsemble: Ensemble Classification Using an Existing MDR Object

Description

This function takes an existing MDR object and a set of new observations and classifies them according to the best n sets of MDR classifiers.

Usage

mdrEnsemble(mdr, data=NULL, new.status=NULL, fold=NULL)

Arguments

mdr

The MDR object.

data

The new data.

new.status

Optional, the true status of the new data.

fold

Level of SNP-SNP interaction.

Value

A classification of the new observations.

Details

This function takes an exisitng MDR object and a set of new observations and classifies them then using the top results of it, as it was defined in the previous MDR run.

Examples

Run this code
# NOT RUN {
data(mdrExample)
mdrSNP.train <- mdrExample[1:350,1:20]
mdrSNP.test <- mdrExample[351:400,1:20]
fit.mdr <- mdr(mdrSNP.train, mdrExample$Class[1:350], fold=2, top=20)
ensResult <- mdrEnsemble(fit.mdr, data = mdrSNP.test)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab