Linkage Disequilibrium

Two loci, four haplotypes, and three measures of linkage disequilibrium. D' measures whether recombination has separated the two alleles. r squared measures whether one marker can stand in for the other, which is the question a GWAS needs answered.

Vibe-coded with ❤️ by Stephen Turner.

Two loci

D-
D'-
r squared-
chi squared-
p-

The same thing in R