CMC(y, X, maf = 0.05, perm = 100)
maf=0.05
by default)"assoctest"
, basically a list with the following elements:
maf
threshold are collapsed into a single super variant
There is no imputation for the missing data. Missing values are simply ignored in the computations.
WSS
, CMAT
, TTEST
## 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(1234)
# genotype = matrix(rbinom(total*10, 2, 0.051), nrow=total, ncol=10)
#
# # apply CMC with maf=0.05 and 500 permutations
# mycmc = CMC(phenotype, genotype, maf=0.05, perm=500)
# mycmc
# ## End(Not run)
Run the code above in your browser using DataLab