Learn R Programming

Biograph (version 1.0)

Occup: State occupancies and sojourn times

Description

Determines states occupied at each age and sojourn time in each state during an one-year age interval.

Usage

Occup(survey)

Arguments

survey
input datat

Value

  • state_occup = state_occup, st_age_1 = st_age_1[,,2], sjt_age_1 = sjt_age_1, tsjt = tsjt))
  • state_occupFor each age, number of subjects by state and number censored
  • st_age-1For each subject, state occupied at each consecutive age. This component may be used as input to the TraMineR package.
  • sjt_age_1For each subject, sojourn time (years) in each state during age intervals of one year.
  • tsjtTotal 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)
  z <- Occup (GLHS)

Run the code above in your browser using DataLab