## Not run:
#
# # number of cases
# cases = 500
#
# # number of controls
# controls = 500
#
# # total (cases + controls)
# total = cases + controls
#
# # phenotype vector
# phenotype = c(rep(1, cases), rep(0, controls))
#
# # genotype matrix with 10 variants (random data)
# set.seed(123)
# genotype = matrix(rbinom(total*10, 2, 0.05), nrow=total, ncol=10)
#
# # apply ASUM with 500 permutations
# myasum = ASUM(phenotype, genotype, perm=500)
# myasum
#
# # apply ASUM.Ord with 500 permutations
# myasumord = ASSU.Ord(phenotype, genotype, perm=500)
# myasumord
# ## End(Not run)
Run the code above in your browser using DataLab