predict.mdr: Calculates MDR Ensemble Classifier

Description Usage Arguments Details Value Author(s) Examples

Description

This is an mdr ensemble classifier.

Usage

1
2
 ## S3 method for class 'mdr'
predict(object, data=NULL, status=NULL, fold=NULL, ...)

Arguments

object

Object of class mdr.

data

The new data object.

status

Optional, used for 2x2 classification table.

fold

Considered dimension of the model.

...

Additional parameters

Details

Given an mdr object this function takes the top list for the (highest) fold group and uses it as an ensemble classifier for the new data given in the data argument.

Value

A vector, giving for each subject from the new data object a classification.

Author(s)

Daniel Fischer

Examples

1
2
3
4
5
6
7
8
# indices <- 1:nrow(genotData)
# trainSet <- sample(indices,100)
# testSet <- indices[-trainSet]
# temp <- recodeData(genotData)
# res <- mdr(X=temp[trainSet,], status=status[trainSet], fold=3, top=20)

# trainRes <- predict(res, data=temp[trainSet,])
# testRes <- predict(res, data=temp[testSet,])

GeneticTools documentation built on Jan. 15, 2017, 11:21 a.m.