state_time: Determines individual state occupation times

Description Usage Arguments Value Author(s) See Also Examples

Description

Determines for given individuals state occupation times at all ages. The function is used in the Occup function

Usage

1
state_time (Bdata,ID)

Arguments

Bdata

Biograph object

ID

Vector of IDs of individuals for whom state occupancy should be determined

Value

state

Individual state occupancies at each birthday

state.n

State occupancies by age

sjt_age_1

For each subject selected: occupation time in each state during age intervals of one year (time in years).

tsjt

For total of selected individuals: number of years spent in each state during age intervals of one year (all ages) (time in person-years).

Author(s)

Frans Willekens and Sabine Zinn

See Also

Occup

Examples

1
2
3
4
  data(GLHS)
  param <- Parameters(GLHS)
  zz <- state_time (Bdata=GLHS,ID=c(15,208))
  

Biograph documentation built on May 1, 2019, 8:48 p.m.