Learn R Programming

Biograph (version 2.0.6)

Occup: State occupancies and sojourn times

Description

Determines states occupied at each age (birthday) and sojourn time in each state during intervals of one-year age.

Usage

Occup(Bdata)

Arguments

Bdata
Biograph object

Value

state_occup
For each age: number of subjects by state and number of subjects censored
st_age_1
For each subject: state occupied at each consecutive age. This component may be used as input to the TraMineR package.
sjt_age_1
For each subject: sojourn time (years) in each state during age intervals of one year.
tsjt
For total sample: number of years spent in each state during age intervals of one year.

See Also

Trans is used after Occup

Examples

Run this code
  data(GLHS)
  param <- Parameters(GLHS)
  z <- Occup (GLHS)
  

Run the code above in your browser using DataLab