get_resid_rv: Average age-specific residual reproductive value

Description Usage Arguments Value Examples

Description

This function computes residual reproductive values based on estimated survival probabilites and age-specific fertiliy rates (see Wikipedia, 2015).

Usage

1
get_resid_rv(id, df_ped, evmat, evmat_bak, age = NULL)

Arguments

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.

Value

The average number of offspring, which can be expected for individuals in id at age age.

Examples

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)

johow/kinlab documentation built on July 5, 2019, 4:23 p.m.