#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 adjusted CA estimate from the sample data for the previously fit MDR object 'fit', assuming the population prevalence is 10%
mdr.ca.adj(mdr1, model=fit$'final model', hr=fit$'high-risk/low-risk', prev=0.10)
Run the code above in your browser using DataLab