Description Usage Arguments Value Author(s) Examples
This function estimates fractional paternity for offspring given a set of potential fathers.
1 2 3 4 5 6 7 8 |
offspring |
A particular offspring. Often as a row
from a |
mother |
The assumed mother of the offspring as a row
from a |
fathers |
A |
ID |
The name of the column where the dad's adult ID column
is found in the |
OffID |
The name of the column where the offspring ID is
located. All offspring from a maternal individual should have
have the same maternal |
strict |
A flag (default=FALSE) to use strict paternity (e.g., where only one dad can be the father) versus fractional paternity (e.g., where potentially more than one father is assignable but whose likelihood is based upon their transition probabilities). |
A data.frame
with indications of paternity by row. Columns
will include ID, OffID, DadID, and potentially Fij.
Rodney J. Dyer rjdyer@vcu.edu
1 2 3 4 5 6 7 8 9 10 11 | freqs <- c(1/3,1/3,1/3)
loci <- rep( paste("Loc",1:6,sep="-"), each=3)
alleles <- LETTERS[1:3]
f <- data.frame(Locus=loci, Allele=alleles, Frequency=freqs)
f
adults <- make_population(f,N=20)
adults
offs <- mate( adults[1,], adults[2,], N=10)
offs$OffID <- offs$ID
offs$MomID <- adults$ID[1]
paternity( offs, adults[1,], adults )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.