optimalfrequency: Evaluate potential haplotypes.

Description Usage Arguments Details Value Author(s) References See Also

View source: R/AlgebraicHaplo.R

Description

Calculate the difference of a known haplotype and the resulting unordered pair of snip pairs.

Usage

1
optimalfrequency(mm, mmorg)

Arguments

mm

This is a contigency table of two haplotype snips. 2x2 matrix or ndata.frame

mmorg

This is a contigency table of two diplotype snips pairs.

Details

The average squared distance to the expected result 3x3 table is used as a T statistic. The p value not to be zero is calculated. The higher the p value the more exact is the haplotype.

Value

A list of values is returned.

result\$LK

Linkage disequilibrium

result\$Testvalue

The squared sitance multiplied by the number of entries in 3x3 matrix mmorg

result\$prSimilarByChange

The probability not o be equal to zero by change.

Author(s)

Jan wolfertz.

References

Stahel: Statistik fuer Naturwissenschaftler und Medizinier, pp. 107-120.

See Also

findoptimal



AlgebraicHaploPackage documentation built on May 19, 2017, 7:48 p.m.
Search within the AlgebraicHaploPackage package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.