Q1. Say, we are exploring the association between diabetes exposure (no, diabetes type 1, diabetes type 2) and CVD outcome (no, acute, chronic). Which of the following code can be used to fit the model?
Q2. Say, we want to explore the relationship between arthritis (binary exposure) and time to CVD development (survival outcome). Which of the following code can be used to fit the cox porportional hazards model?