Rates.ac: Estimates occurrence-exposure rates

Description Usage Arguments Details Value Author(s) Examples

View source: R/Rates.ac.R

Description

Estimates occurrence-exposure rates. The transition rates are of the age-cohort type.

Usage

1
Rates.ac (Stable)

Arguments

Stable

Stable is object produced by RateTable function

Details

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.

Value

M

Transition rates by origin, destination and age in standard format [M-format]

Mcum

Cumulative occurrence-transition rates

Author(s)

Frans Willekens

Examples

 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)   
   

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