first_bdate: Get birth date of a mother's first born child

Description Usage Arguments Examples

Description

This function returns the birth date of a mother's first born child

Usage

1
first_bdate(id, kh_mat)

Arguments

id

Individual ID of parent(s)

kh_mat

An event array (see ?get_evmat )

Examples

1
2
3
4
5
6
## Not run: 
df_ind$bdate <- sample(seq(as.Date("1774-12-31"), as.Date("1874-12-31"), 100), nrow(df_ind))
df_fam <- data.frame(idf = c(0,unique(df_ind$momid[df_ind$momid>0])), fall = "C")
sample_kh(df_ind, df_fam)

## End(Not run)

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