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
data (GLHS)
z<- Parameters (GLHS)
occup <- Occup(GLHS)
ist <- statesequence.ind (GLHS)
trans <- Trans (GLHS,seq.ind=ist)
w <- RateTable(GLHS, occup, trans)