IALSA / ialsa-2016-amsterdam

Multi-study and multivariate evaluation of healthy life expectancy (HLE): An IALSA workshop on multistate modeling using R
GNU General Public License v2.0
0 stars 0 forks source link

Common model specification #43

Open andkov opened 7 years ago

andkov commented 7 years ago

Form specification ( model B)

# transition matrix
Q <- rbind( c(0, q, 0, q), 
            c(q, 0, q, q),
            c(0, 0, 0, q), 
            c(0, 0, 0, 0)) 
# misclassification matrix
E <- rbind( c( 0,  0,  0, 0),  
            c( 0,  0, .1, 0), 
            c( 0,  0,  0, 0),
            c( 0,  0,  0, 0) )

Covariate specifications:

Version 1:

using three categories for education (low, med, high)

# Forward transitions:
  "1-2"       = "age + male  + education + ses"
  "2-3"       = "age + male  + education + ses"
# Backward transitions:
  "2-1"       = "age"
# Death transitions: 
  "1-4"       = "age + male + education"
  "2-4"       = "age + male + education"
  "3-4"       = "age + male + education"

Version 2 :

using dummy variables for education

# Forward transitions:
  "1-2"       = "age + male  + edu_low_med + edu_low_high + ses"
  "2-3"       = "age + male  + edu_low_med + edu_low_high + ses"
# Backward transitions:
  "2-1"       = "age"
# Death transitions: 
  "1-4"       = "age + male + edu_low_med + edu_low_high"
  "2-4"       = "age + male + edu_low_med + edu_low_high"
  "3-4"       = "age + male + edu_low_med + edu_low_high"