Description Usage Arguments Details Value References Examples
C(alpha) (Neale at al., 2011) is a statistical test, developed for disease traits, in order to test for the hypothesis of rare variants disease association. This test has an assumption that rare variants, which were observed in cases and controls and are a mix of various types of variants: phenotypically deleterious, protective and neutral variants.
1 |
table |
a numeric matrix with first column having disease status '0' or '1' and the rest columns codes the locus genotype as '0', '1', and '2'. |
permutations |
positive integer that defines the number of permutations. In permutation test, the distribution of the test statistic under the null hypothesis is obtained by calculating all possible values of the test statistic under rearrangements of the labels on the observed data points. |
....
A list with the following elements:
calpha.stat |
C(alpha) statistic |
asym.pval |
asymptotic p-value, distributed as Chi-square, with parameter degrees of freedom |
perm.pval |
permuted p-value; only when |
args |
descriptive information with number of controls, cases,variants, and permutations |
name |
name of the statistic |
Benjamin M. Neale, Manuel A. Rivas, Benjamin F. Voight, David Altshuler, Bernie Devlin, Marju Orho-Melander, Sekar Kathiresan, Shaun M. Purcell, Kathryn Roeder and Mark J. Daly (2011), Testing for an Unusual Distribution of Rare Variants. PLoS Genetics doi:10.1371/journal.pgen.1001322. http://dx.plos.org/10.1371/journal.pgen.1001322
1 2 3 4 5 6 7 8 | # Load the package
library(vartools)
?calpha
casectrl.dat <- read.table(system.file("extdata","phengen.dat",package="vartools"), skip = 1)
calpha.stat <- calpha(casectrl.dat)
calpha.stat
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.