## 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))
#
# # define genotype matrix with 10 variants (random data)
# set.seed(1234)
# genotype = matrix(rbinom(total*10, 2, 0.051), nrow=total, ncol=10)
#
# # apply CARV with "hard" approach and maf=0.05
# mycarv1 = CARV(phenotype, genotype, waf=FALSE, signs=FALSE,
# approach="hard", maf=0.05, perm=500)
# mycarv1
#
# # apply CARV with "variable" approach and waf=TRUE
# mycarv2 = CARV(phenotype, genotype, waf=TRUE, signs=FALSE,
# approach="variable", perm=500)
# mycarv2
#
# # apply CARV with "stepup" approach, waf=TRUE, and signs=TRUE
# mycarv3 = CARV(phenotype, genotype, waf=TRUE, signs=TRUE,
# approach="stepup", perm=500)
# mycarv3
#
# ## End(Not run)
Run the code above in your browser using DataLab