boot.error(data, prev, model, hr, b, genotype = c(0, 1, 2))
data
; default is c(0,1,2), but this vector can be longer or shorter depending on if more or fewer than three genotypes are possible Winham SJ and Motsinger-Reif AA (2010). The effect of retrospective sampling on estimates of prediction error for multifactor dimensionality reduction. Annals of Human Genetics.
mdr.cv
, mdr.3WS
, mdr.ca.adj
#load test data
data(mdr1)
#this runs mdr with 5-fold cross-validation on a subset of the sample data, considering all pairwise combinations (K=2)
fit<-mdr.cv(mdr1[1:11],K=2,cv=5)
#calculates bootstrap estimate from b=100 bootstrap samples of the sample data for the previously fit MDR object 'fit', assuming the population prevalence is 10%
boot.error(mdr1,prev=0.10, model=fit$'final model', hr=fit$'high-risk/low-risk', b=100)
Run the code above in your browser using DataLab