chi2: Creates a vector of chi-squared values from the allelic test...

Description Usage Arguments Value Author(s)

View source: R/chi2.R


One degree of freedom Chi-squared test of allelic counts


chi2(Xa, Y)



A matrix of genotype values coded as 0, 1 or 2 for homozygous major, heterozygous, or homozygous minor, respectively. Rows are subjects and columns are SNPs. May be created with method from the GenABEL package.


A vector of disease phenotypes, diseased = 1, non-diseased = 0


This function returns a vector of chi-squared, one degree of freedom, statistics for the allelic test of association. The length of this vector is the number of SNPs.


Samuel G. Younkin

ldlasso documentation built on May 20, 2017, 12:54 a.m.

Search within the ldlasso package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.