Learn R Programming

Biograph (version 1.0)

RateTable: Table for rate calculation

Description

Ratetable produces a table of transitions and exposure times for calculating transition rates (occurrence-exposure rates)

Usage

RateTable(survey, occup, trans)

Arguments

survey
Input data
occup
Object produced by the Occup function
trans
Object produced by the Trans function

Value

  • StableThe table of transitions and exposure times
  • censored_by_ageNumber of censored cases by age and state at censoring

Details

RateTable is one of the key functions of the package. It provides in table format the data needed for determining transition rates by origin, destination and age

References

Willekens (2011)

Examples

Run this code
data (GLHS)
 z<- Parameters (GLHS)
 occup <- Occup(GLHS)
 ist <- statesequence.ind (GLHS)
 trans <- Trans (GLHS,seq.ind=ist)
 w <- RateTable(GLHS, occup, trans)

Run the code above in your browser using DataLab