gLRTH2: The Function for the Likelihood Ratio Test for Genome-Wide...

Description Usage Arguments Value Author(s) References Examples

Description

The Function for the Likelihood Ratio Test for Genome-Wide Association under Genetic Heterogeneity with long format of genotype and disease status data

Usage

1
gLRTH2(g, d)

Arguments

g

an n x 1 vector contains the number of minor allele (i.e., 0, 1 or 2) for a given SNP, where n is the number of observations.

d

an n x 1 vector contains disease status, 1 is case and 0 is control, where n is the number of observations.

Value

The test statistic and asymptotic p-value for the likelihood ratio test under genetic heterogeneity

Author(s)

Xiaoxia Han and Yongzhao Shao

References

Qian M., Shao Y. (2013) A Likelihood Ratio Test for Genome-Wide Association under Genetic Heterogeneity. Annals of Human Genetics, 77(2): 174-182.

Examples

1
2
3
4
5
disease<-c(rep(1, 200), rep(0, 200))
geno1<-c(rbinom(n=50, size=2, prob=0.5), rbinom(n=150, size=2, prob=0.23))
geno2<-rbinom(n=200, size=2, prob=0.5)
geno<-c(geno1, geno2)
gLRTH2(g=geno, d=disease)

echohan/gLRTH documentation built on May 15, 2019, 7:51 p.m.