Description Usage Arguments Details Value Author(s) Examples
Estimates occurrence-exposure rates. The transition rates are of the age-cohort type.
1 | Rates.ac (Stable)
|
Stable |
Stable is object produced by RateTable function |
The transition rates and the cumulative transition rates are organized as follows: row variable is age, column variable is destination state and layer variable is origin state. The age-cohort transition rates are used to construct multistate life tables.
M |
Transition rates by origin, destination and age in standard format [M-format] |
Mcum |
Cumulative occurrence-transition rates |
Frans Willekens
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Example 1: Transition rates between NOJOB and JOB, based on GLHS
data(GLHS)
z<- Parameters (GLHS)
occup <- Occup(GLHS)
seq.ind <- Sequences.ind (GLHS$path,attr(GLHS,"param")$namstates)
trans <- Trans (GLHS)
ratetable <- RateTable (GLHS,occup=occup,trans=trans)
rates <- Rates.ac (Stable=ratetable$Stable)
# Example 2: Rates of transition between living arrangements, based on NLOG98
data(NLOG98)
data <- NLOG98[!is.na (NLOG98$kerk)&NLOG98$kerk=="Roman Catholic",]
z <- Parameters (data)
seq.ind <- Sequences.ind (data$path,namstatesnew=c("H","C","A","M","K"))
occup <- Occup (data)
trans <- Trans (Bdata=data)
ratetable <- RateTable (NLOG98,occup=occup,trans=trans)
rates <- Rates.ac (Stable=ratetable$Stable)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.