This package is dedicated to statistical tests used in genetic association studies. It provides a toolbox with the state-of-the-art methods that have been developed to target the problem of testing for association between a binary phenotype and multiple genetic variants within a gene or a region.
install.packages("AssotesteR")
install.packages("devtools")
library(devtools)
install_github('AssotesteR', username='gastonstat')
> library(AssotesteR)
> cases = 500
> controls = 500
> total = cases + controls
> phenotype = c(rep(1, cases), rep(0, controls))
> set.seed(123)
> genotype = matrix(rbinom(total*10, 2, 0.05), nrow=total, ncol=10)
> mywss = WSS(phenotype, genotype, perm=500)
Or check out www.gastonsanchez.com/assotester for more information.
Gaston Sanchez (gaston.stat at gmail.com)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.