R code for chapter 11
Section 11.1.3
Subsection: Impact of hospital-acquired pneumonia (HAP) on length of stay in intensive care unit
Cox model with pneumonia as a time-dependent covariate: |
|
With some further covariates: |
|
Section 11.2.3
Subsection: Impact of hospital-acquired pneumonia (HAP) on intensive care unit mortality
Creation of a new variable which encodes both observed competing event status and censoring status: |
|
Proportional cause-specific hazards models including HAP as the time-dependent variable: |
|
Proportional subdistribution hazards model with HAP as a time-dependent covariate using the kmi package. |
|
Kontakt
Klicken Sie hier um zu unserer Kontaktseite zu gelangen.