# NOT RUN {
# Generalised kinship between three siblings
x = nuclearPed(3)
phi3 = generalisedKinship3(x, ids = 3:5)
# Recalculate if the father is 100% inbred
founderInbreeding(x, 1) = 1
phi3_inbred = generalisedKinship3(x, ids = 3:5)
stopifnot(phi3 == 1/16, phi3_inbred == 1/8 + 1/32)
# }
Run the code above in your browser using DataLab