R/ld.r
simulate_haplotypes.Rd
Simulate haplotypes of two loci
simulate_haplotypes(nid, r, p1, p2)
Number of samples
Desired LD r
Freq 1
Freq 2
Matrix