is_alive: Test for estimated survival status of a given individual at a...

Description Usage Arguments Examples

Description

Returns estimated survival status of a given individual at a given date. Estimates are based on recorded deaths and the assumption that individuals neither dying nor being mentioned elsewhere did survive at least until the age of 15 (and later possibly outmigrated).

Usage

1
is_alive(x, evdat, df_ind)

Arguments

x

An individual's ID

evdat

Date of interest for estimated survival status of individual x in the format "Year-month-day".

df_ind

A dataframe containing birth and death dates of individuals in x

Examples

1
2
3
4
## Not run: 
grap_ped(1067, df_ped)

## End(Not run)

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