## 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 ORWSS with c.param=NULL and 500 permutations
# myorwss1 = ORWSS(phenotype, genotype, c.param=NULL, perm=100)
# myorwss1
#
# # apply ORWSS with c.param=1.64 (see Feng et al 2011)
# myorwss2 = ORWSS(phenotype, genotype, c.param=1.64, perm=100)
# myorwss2
# ## End(Not run)
Run the code above in your browser using DataLab