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

Description Usage Arguments Value Author(s)

View source: R/chi2.R

Description

One degree of freedom Chi-squared test of allelic counts

Usage

1
chi2(Xa, Y)

Arguments

Xa

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 as.double.snp.data from the GenABEL package.

Y

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

Value

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.

Author(s)

Samuel G. Younkin


ldlasso documentation built on May 30, 2017, 3:05 a.m.