Learn R Programming

MCPerm (version 1.1.4)

Armitage: Armitage's trend test for the 2x3 genotype table

Description

Armitage's trend test for the 2x3 genotype table.

Usage

Armitage(case_11, case_12, case_22, control_11, control_12, control_22)

Arguments

case_11
a non-negative integer, the frequency of genotype "allele1/allele1" in case samples.
case_12
a non-negative integer, the frequency of genotype "allele1/allele2" in case samples.
case_22
a non-negative integer, the frequency of genotype "allele2/allele2" in case samples.
control_11
a non-negative integer, the frequency of genotype "allele1/allele1" in control samples.
control_12
a non-negative integer, the frequency of genotype "allele1/allele2" in control samples.
control_22
a non-negative integer, the frequency of genotype "allele2/allele2" in control samples.

Value

statistic
numeric, the statistic of armitage test for trend.
pValue
numeric, the p value of armitage test for trend.

Details

The Cochran-Armitage test for trend, is used in categorical data analysis when the aim is to assess for the presence of an association between a variable with two categories and a variable with k categories. It modifies the Pearson chi-squared test to incorporate a suspected ordering in the effects of the k categories of the second variable. The trend test is ofen used as a genotype-based test for case-control genetic association studies.

References

Armitage, P(1955): Tests for Linear Trends in Proportions and Frequencies.

statgen.org(2007): A derivation for Armitage's trend test for the 2x3 genotype table.

See Also

OR, OR.TradPerm, OR.MCPerm, Armitage.TradPerm, Armitage.MCPerm, chisq.test, chisq.TradPerm, chisq.MCPerm, fisher.test, fisher.TradPerm, fisher.MCPerm, meta, meta.TradPerm, meta.MCPerm, permuteGenotype, rhyper, permuteGenotypeCount, genotypeStat

Examples

Run this code
# case_11=4
# case_12=1
# case_22=1
# control_11=3
# control_12=0
# control_22=0
# Armitage(case_11,case_12,case_22,control_11,control_12,control_22)

Run the code above in your browser using DataLab