lrt.G: Likelihood Ratio Tests for Identifying Disease Polymorphisms...

Description Usage Arguments Value See Also Examples

Description

Compute p-values and likelihoods of all possible models for a given number of disease SNP(s).

Usage

1
 lrtG(n.fp, genoT, genoC)

Arguments

n.fp

number of disease SNPs for tests.

genoT

matrix of control genotypes. Each row indicates a variant, and each column indicates a haplotype of an individual. Two alleles of 0 and 1 are available.

genoC

matrix of case genotypes. Each row indicates a variant, and each column indicates a haplotype of an individual. Two alleles of 0 and 1 are available.

Value

matrix of likelihood ratio test results. First row indicates the index, and following n.fp rows indicate the model for each set of disease polymorphisms, and followed by p-values, -2 log(likelihood ratio) with corrections for variances, and the degree of freedom.

See Also

allele.freq.G

Examples

1
2
3
4
5
6
7
## LRT tests for a dominant variant (15th variant)
## the odds ratio: 3, control: 100, case: 100.

data(apoeG)
lrtG(1,genoT[,1:20],genoC[,1:20])

# use "lrtG(1,genoT,genoC)" for the actual test.

IFP documentation built on May 29, 2017, 9:07 p.m.