Learn R Programming

Biograph (version 2.0.6)

state_time: Determines individual state occupation times

Description

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

Usage

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).

See Also

Occup

Examples

Run this code
  data(GLHS)
  param <- Parameters(GLHS)
  zz <- state_time (Bdata=GLHS,ID=c(15,208))
  

Run the code above in your browser using DataLab