data(toyped)
x=linkdat(toyped, model=1)
summary(x)
#switching sex of both offspring:
x=modifyPedigree(x, id=c(3,4), attrib='SEX')
#adding two children (non-affected males) to individual 4
x=addChildren(x, father=0, mother=4, children=2)
x
#and removing one of them again
x=removeIndiv(x, 7)
x
#adding an affected half-sib
x=addChildren(x, father=1, mother=0, sex=2, aff=2)
x
#the affected half-sib has genotype AB:
x=modifyMarker(x, 8, c(1,2))
x
plot(x,1)
lod(x)
Run the code above in your browser using DataLab