Description Usage Arguments Value Examples
This function computes residual reproductive values based on estimated survival probabilites and age-specific fertiliy rates (see Wikipedia, 2015).
1 | get_resid_rv(id, df_ped, evmat, evmat_bak, age = NULL)
|
id |
The individual IDs of females of interests |
df_ped |
A dataframe for genealogical relations providing the variables 'id', 'momid' and 'dadid' |
evmat |
Event matrix |
evmat_bak |
An event matrix |
age |
Age for which the residual reproductive value should be computed. |
The average number of offspring, which can be expected for individuals in id
at age age
.
1 2 3 4 | ## Not run:
get_resid_rv(sample(df_ped$momid[df_ped$momid>0], 100), df_ped, age=30)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.