haplofreqs {hapsim} | R Documentation |
Haplotype frequencies
Description
Compute haplotype frequencies
Usage
haplofreqs(dat, firstl, lastl)
Arguments
dat |
A binary matrix, rows are haplotypes and columns are binary markers |
firstl |
Position of the first locus |
lastl |
Position of the last locus |
Value
A vector of haplotype frequencies
Author(s)
Giovanni Montana
References
Montana, G. HapSim: a simulation tool for generating haplotype data with pre-specified allele frequencies and LD coefficients. 2005.
Examples
data(ACEdata)
freqs <- haplofreqs(ACEdata, 17, 22)
[Package hapsim version 0.31 Index]