Learn R Programming

Biograph (version 1.0)

TransitionAB: Age profile of selected transition

Description

Extract from a Biograph object and for a given transition the number of transitions by age

Usage

TransitionAB(data, transition)

Arguments

data
Biograph object
transition
Selected transition

Value

  • caseTotal count of the selected transition
  • NPosition of the selected transition in the path variable of the Biograph object
  • dateFor each subject experiencing the transition, date of transition
  • ageFor each subject experiencing the transition, age at transition
  • yearFor each subject experiencing the transition, year of transition (year is real variable, including fraction of year)
  • cohortFor each subject experiencing the transition, birth cohort

Examples

Run this code
data (GLHS)
  y <- Parameters (GLHS)
  z <- TransitionAB (GLHS,"NJ")

Run the code above in your browser using DataLab