## Not run:
# data(hla)
# y<-hla[,2]
# geno<-hla[,3:8]
# # complete data
# hap.score(y,geno,locus.label=c("DRB","DQA","DQB"))
# # incomplete genotype data
# hap.score(y,geno,locus.label=c("DRB","DQA","DQB"),handle.miss=1,mloci=1)
# unlink("assign.dat")
#
# ### note the differences in p values in the following runs
# data(aldh2)
# # to subset the data since hap doesn't handle one allele missing
# deleted<-c(40,239,256)
# aldh2[deleted,]
# aldh2<-aldh2[-deleted,]
# y<-aldh2[,2]
# geno<-aldh2[,3:18]
# # only one missing locus
# hap.score(y,geno,handle.miss=1,mloci=1,method="hap")
# # up to seven missing loci and with 10,000 permutations
# hap.score(y,geno,handle.miss=1,mloci=7,method="hap",n.sim=10000)
#
# # hap.score takes considerably longer time and does not handle missing data
# hap.score(y,geno,n.sim=10000)
# ## End(Not run)
Run the code above in your browser using DataLab