I am attempting to run a competing risk analysis (stcreg) with several time-varying covariates and want to make sure I am setting up my data correctly. For example, if we were looking at pneumonia with the competing risk of death, would this be correct (in particular the set up of "failtype"- would it be set to alive for all rows except the last if they had one of the outcomes)?:
| id | bmi | failtype |
| 1 | 20 | alive |
| 1 | 25 | dead |
| 2 | 18 | alive |
| 2 | 19 | alive |
| 2 | 21 | pneumonia |
