Learn R Programming

Biograph (version 1.0)

OverviewTransitions: Overview of transitions

Description

Produces standard summary tables on transitions.

Usage

OverviewTransitions(survey, seq.ind, agetrans)
p.OverviewTransitions(data, path, file.in, file.out)

Arguments

survey
input data
seq.ind
individual state sequences
agetrans
Ages at the different transitions
data
Object produced by the OverviewTransitions function
path
Path to the folder where the tabulations should be saved
file.in
Name of input data file
file.out
Name of output file

Value

  • TtransNumber of transitions by origin and destination and censored cases by state occupied at time of censoring.
  • meanageMean age at transition by origin and destinatin and mean age at censoring.

Examples

Run this code
data (GLHS)
 z <- Parameters (GLHS)
 ist <- statesequence.ind (GLHS)
 agetrans <- AgeTrans (GLHS)
 overviewT <- OverviewTransitions (GLHS, seq.ind=ist, agetrans)

  path1 <- getwd() # save output file in current directory
  p.OverviewTransitions (overviewT,path=path1,file.in="GLHS",file.out="transitions.out")

Run the code above in your browser using DataLab