ldR: A function to calculate Kelly's Zns statistic and the...

Description Usage Arguments Value Author(s) Examples

View source: R/ldR.R

Description

A function to calculate Kelly's Zns statistic and the omega_max statistic given a haplotype matrix.

Usage

1
ldR(hapmatrix)

Arguments

hapmatrix

A haplotype matrix with ones (ancestral) and twos (derived).

Value

Kelly's Zns statistic, the omega_max statistic and the site produces omega_max.

Author(s)

Fei Xiang ([email protected])

Examples

1
2
exmtx=matrix(sample(2,80,replace=T),ncol=10,nrow=8)
ldR(exmtx)

sdwfrost/popseq documentation built on May 29, 2019, 4:23 p.m.