Learn R Programming

MCPerm (version 1.1.4)

OR: OR(odd ratio) for risk_allele

Description

OR(odd ratio) for risk_allele.

Usage

OR(case_allele1, case_allele2, control_allele1, control_allele2)

Arguments

case_allele1
a non-negative integer, the frequency of allele1 in case samples.
case_allele2
a non-negative integer, the frequency of allele2 in case samples.
control_allele1
a non-negative integer, the frequency of allele1 in control samples.
control_allele2
a non-negative integer, the frequency of allele2 in control samples.

Value

risk_allele
risk_allele(OR>1).
OR
the value of OR.
CI
a matrix with one row, the 0.95 CI(Confidence Interval) of OR: lower limit OR, upper limit OR.

Details

The odds ratio is a measure of effect size, describing the strength of association or non-independence between two binary data values.

References

Edwards, A.W.F.(1963): The measure of association in a 2x2 table.

See Also

OR.TradPerm, OR.MCPerm, Armitage, 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_allele1=23
# case_allele2=34
# control_allele1=26
# control_allele2=29
# OR(case_allele1, case_allele2, control_allele1, control_allele2)

Run the code above in your browser using DataLab