# NOT RUN {
data(geneaJi)
genJi<-gen.genealogy(geneaJi)
# }
# NOT RUN {
Probability that subjects 1 and 29 get 1 and 2 alleles from ancestors 20 and 25,
# }
# NOT RUN {
that have themselves 2 and 1.
# }
# NOT RUN {
gen.simuProb(genJi, pro=c(1,29), statePro=c(1,2), ancestors=c(20,25), stateAncestors=c(2,1),
simulNo=10000)
# }
# NOT RUN {
Probability that subjects 1 and 29 get 1 segment from ancestors 25,
# }
# NOT RUN {
knowing the segment has a male
# }
# NOT RUN {
recombination rate of 0.02 and a female recombination rate of 0.04.
# }
# NOT RUN {
gen.simuProb(genJi, pro=c(1,29), statePro=c(1,1), ancestors=c(25), stateAncestors=c(1),
simulNo=10000, probRecomb = c(0.02, 0.04))
# }
# NOT RUN {
Probability that subjects 1 and 29 get 1 and 2 alleles from ancestors 20 and 25,
# }
# NOT RUN {
that have themselves 2 and 1 and knowing that homozygous people have a survival rate
# }
# NOT RUN {
of 0.50.
# }
# NOT RUN {
gen.simuProb(genJi, pro=c(1,29), statePro=c(1,2), ancestors=c(20,25), stateAncestors=c(2,1),
simulNo=10000, probSurvival=0.5)
# }
Run the code above in your browser using DataLab