cohort: cohort

Description Usage Arguments Details Value See Also Examples

Description

Dummy function called in life.table.

Usage

1
cohort(width12)

Arguments

width12

width of the first two age classes

Details

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

Value

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

See Also

life.table

Examples

1
2
3
4
data(thar)
thar.lt <- with(thar, life.table(x=age, nDx=deaths, nKx=count, 
    type="cohort", iwidth=1, width12=c(1,1)))
thar.lt

Example output

    x nax    nMx    nqx     lx    ndx    nLx   Tx   ex
1   0 0.5 0.5317 0.5317 1.0000 0.5317 0.7341 3.49 3.49
2   1 0.5 0.0208 0.0208 0.4683 0.0098 0.4634 2.75 5.88
3   2 0.5 0.0532 0.0532 0.4585 0.0244 0.4463 2.29 4.99
4   3 0.5 0.1124 0.1124 0.4341 0.0488 0.4098 1.84 4.24
5   4 0.5 0.1392 0.1392 0.3854 0.0537 0.3585 1.43 3.72
6   5 0.5 0.1912 0.1912 0.3317 0.0634 0.3000 1.07 3.24
7   6 0.5 0.2182 0.2182 0.2683 0.0585 0.2390 0.77 2.88
8   7 0.5 0.2558 0.2558 0.2098 0.0537 0.1829 0.53 2.55
9   8 0.5 0.3125 0.3125 0.1561 0.0488 0.1317 0.35 2.25
10  9 0.5 0.3182 0.3182 0.1073 0.0341 0.0902 0.22 2.05
11 10 0.5 0.3333 0.3333 0.0732 0.0244 0.0610 0.13 1.77
12 11 0.5 0.4000 0.4000 0.0488 0.0195 0.0390 0.07 1.40
13 12 1.0 1.0000 1.0000 0.0293 0.0293 0.0293 0.03 1.00

demogR documentation built on May 1, 2019, 10:56 p.m.