Learn R Programming

demogR (version 0.6.0)

cohort: cohort

Description

Dummy function called in life.table.

Usage

cohort(width12)

Arguments

width12

width of the first two age classes

Value

A two element vector representing the first two values of the nax column of the life table.

Details

This is essentially a place-holder function used when passing the option type="cohort" to life.table.

See Also

life.table

Examples

Run this code
# NOT RUN {
data(thar)
thar.lt <- with(thar, life.table(x=age, nDx=deaths, nKx=count, 
    type="cohort", iwidth=1, width12=c(1,1)))
thar.lt
# }

Run the code above in your browser using DataLab