# transition matrix for parent-offspring, for q=0.1
makeTransitionMatrix(0.1,nmeioses=1)
# for a set of q's
makeTransitionMatrix(c(0.1,0.9),nmeioses=1)
# for sibs
makeTransitionMatrix(0.1,nmeioses=c(2,2))
# for half-sibs (or grandparent-grandchild)
makeTransitionMatrix(0.1,nmeioses=2)
# for remote relatives
makeTransitionMatrix(0.1,nmeioses=10)
# for independent
makeTransitionMatrix(0.1,nmeioses=1000)
Run the code above in your browser using DataLab