# NOT RUN {
# A nuclear family with 2 boys and 3 girls
nuclearPed(5, sex = c(1, 1, 2, 2, 2))
# A straight line of females
linearPed(3, sex = 2)
# Paternal half brothers
halfSibPed()
# Maternal half sisters
halfSibPed(sex1 = 2, sex2 = 2, type = "maternal")
# Larger half sibships: boy and girl on one side; 3 girls on the other
halfSibPed(nch1 = 2, sex = 1:2, nch2 = 3, sex2 = 2)
# Grand aunt:
cousinPed(degree = 0, removal = 2)
# Second cousins once removed.
cousinPed(degree = 2, removal = 1)
# Same, but with the 'removal' on the left side.
cousinPed(2, 1, side = "left")
# A child of half first cousins.
halfCousinPed(degree = 1, child = TRUE)
# The 'family tree' of a person
ancestralPed(g = 2)
# }
Run the code above in your browser using DataLab