state_age: Determines for given individuals state occupied at given ages

Description Usage Arguments Value Author(s) See Also Examples

Description

Determines state occupied at given exact ages (birthdays). The function is used in the Occup function

Usage

1
state_age (Bdata,age,ID)

Arguments

Bdata

Biograph object

age

Vector of ages for which state occupancy should be determined

ID

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

Value

nam

Names of states that can be occupied. The list includes '-' to indicate that at that age observation did not start yet and '+' to indicate that observation ended.

state

State occupied at given age by each individual in the study.

state.n

State occupied at given age: all individuals (table).

Author(s)

Frans Willekens and Sabine Zinn

See Also

Occup

Examples

1
2
3
4
5
  data(GLHS)
  param <- Parameters(GLHS)
  agetrans <- AgeTrans(Bdata=GLHS)
  z <- state_age (Bdata=GLHS,age=c(20,30),ID=c(15,208))
  

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