# NOT RUN {
# Simulate 5 markers for a pair of full sibs
set.seed(123)
sibs = nuclearPed(children = c("A", "B"))
sibs = simpleSim(sibs, N = 5, alleles = 1:4, ids = c("A", "B"))
# Create two alternative hypotheses and transfer the simulated genotypes to them
halfsibs = relabel(halfSibPed(), old = 4:5, new = c("A", "B"))
halfsibs = transferMarkers(sibs, halfsibs)
unrel = list(singleton("A"), singleton("B"))
unrel = transferMarkers(sibs, unrel)
# Compute LR with 'unrelated' as reference
res = kinshipLR(list(sibs, halfsibs, unrel), ref = 3)
res
# Detailed results
res$LRperMarker
res$likelihoodsPerMarker
# }
Run the code above in your browser using DataLab