mdr.c {ORMDR} | R Documentation |
MDR : Multifactor Dimensionality Reduction
Description
MDR method classifies the combination of multilocus tgenotypes into high-risk and low-risk groups based on a simple comparison of the ratios of the number of cases and controls.
Usage
mdr.c(dataset,colresp,cs,combi,cv.fold=10,randomize=TRUE)
Arguments
dataset |
SNP data set with class variable |
colresp |
location of class variable in dataset |
cs |
how to code "case" class |
combi |
number of genes for combination |
cv.fold |
number of fold in cross validation |
randomize |
logical. If 'TRUE' (the default) the cross validation sets are randomized |
Value
min.comb |
combination with minimum error rate in each cross validation |
train.erate |
training error |
test.erate |
test error |
data |
dataset |
best.combi |
best combination |
Examples
data(sample.dat)
mdr.c(sample.dat, colresp=21, cs=1, combi=2, cv.fold = 10)
[Package
ORMDR version 1.3-1
Index]