Open andkov opened 7 years ago
# 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) )
using three categories for education (low, med, high)
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"
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"
Form specification ( model B)
Covariate specifications:
Version 1:
using three categories for education (
low
,med
,high
)Version 2 :
using dummy variables for education