mdrEnsemble: Ensemble Classification Using an Existing MDR Object

Description Usage Arguments Details Value Author(s) Examples

View source: R/mdrEnsemble.R

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

1
  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.

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.

Value

A classification of the new observations.

Author(s)

Daniel Fischer

Examples

1
2
3
4
5
6
7
8
## 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)

## End(Not run)

GenomicTools documentation built on March 13, 2020, 3:08 a.m.