#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