## Not run:
# # two examples in the C program 2LD:
# # two SNPs as in 2by2.dat
# # this can be compared with output from LD22
#
# h <- c(0.442356,0.291532,0.245794,0.020319)
# n <- 481*2
# t <- LDkl(2,2,h,n)
# t
#
# # two multiallelic markers as in kbyl.dat
# # the two-locus haplotype vector is in file "kbyl.dat"
#
# filespec <- system.file("tests/2ld/kbyl.dat")
# h <- scan(filespec,skip=1)
# t <- LDkl(9,5,h,213*2,verbose=TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab