Description Usage Arguments Value Author(s) Examples
View source: R/transition_probability.R
This is a quick function used in paternity testing that provides the probability of transition for a locus of any ploidy level.
1 | transition_probability(off, mom, dad, multilocus = TRUE)
|
off |
A locus from the offspring |
mom |
A locus from one parent |
dad |
A locus from another parent |
multilocus |
A flag indicating that a single multilocus estimate
of the transition probability should be passed (the default action).
If |
The numeric probability of the offspring given the parents
Rodney J. Dyer <rjdyer@vcu.edu>
1 2 3 4 5 6 7 8 | off <- locus( 1:2 )
mom <- locus( c(1,1) )
dad1 <- locus( c(2,2) )
dad2 <- locus( c(1,2) )
dad3 <- locus( c(1,1) )
transition_probability( off, mom, dad1 )
transition_probability( off, mom, dad2 )
transition_probability( off, mom, dad3 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.