### Example 1: Siblings
x = nuclearPed(2)
# Simulate 100 markers
x = markerSim(x, N = 100, alleles = 1:4, seed = 123, verbose = FALSE)
# Estimate kappa (expectation: (0.25, 0.5, 0.25)
ibdEstimate(x, ids = 3:4)
# Plot contours of the log-likelihood function
ibdEstimate(x, ids = 3:4, contourPlot = TRUE)
### Example 2: Full sib mating
y = fullSibMating(1)
# Simulate 200 SNP markers
y = markerSim(y, N = 1000, alleles = 1:10, seed = 123, verbose = FALSE)
# Estimate
ibdEstimate(y, ids = 5:6, param = "delta")
Run the code above in your browser using DataLab