Learn R Programming

hapsim (version 0.31)

cor2dprime: Correlations to D' coefficients conversion

Description

Converts a matrix of correlation coefficients into a D' matrix

Usage

cor2dprime(mat, probs)

Arguments

mat

A correlation matrix

probs

A vector of allele frequencies

Value

The resulting matrix of D' coefficients

References

Montana, G. HapSim: a simulation tool for generating haplotype data with pre-specified allele frequencies and LD coefficients. 2005.