Type : CREATION_INTERNE
Data is defined directly in the script (datalines) and concerns death times, censoring, stage, and age at diagnosis.
| 1 | DATA ex1_8b; |
| 2 | INPUT time censor stage age_diag yr_diag; |
| 3 | lines; |
| 4 | 0.6 1 1 77 76 |
| 5 | 1.3 1 1 53 71 |
| 6 | 2.4 1 1 45 71 |
| 7 | /* ... données tronquées pour l'affichage ... */ |
| 8 | 4.3 0 4 48 76 |
| 9 | ; |
| 1 | DATA ex1_8b; SET ex1_8b; |
| 2 | title 'Example 1.8, page 9 data -- Death Times of Male Laryngeal Cancer Patients'; |
| 3 | title3 'Proportional Hazards Regression Model -- Local Tests'; |
| 4 | stage2=(stage=2); |
| 5 | stage3=(stage=3); |
| 6 | stage4=(stage=4); |
| 7 | RUN; |
| 1 | PROC PRINT DATA=ex1_8b; |
| 2 | RUN; |
| 1 | PROC PHREG DATA=ex1_8b; |
| 2 | model time*censor(0) = stage2-stage4 age_diag; |
| 3 | no_stage:test stage2,stage3,stage4; |
| 4 | st2_st3: test stage2=stage3; |
| 5 | st2_st4: test stage2=stage4; |
| 6 | st3_st4: test stage3=stage4; |
| 7 | RUN; |
| 1 | PROC PHREG DATA=ex1_8b; |
| 2 | model time*censor(0) = stage2-stage4; |
| 3 | test stage2=stage3; |
| 4 | test stage3=stage4; |
| 5 | test stage2=stage4; |
| 6 | RUN; |
| 1 | PROC LIFETEST DATA=ex1_8b method=life plots=(s,h) graphics; |
| 2 | time time*censor(0); |
| 3 | strata stage; |
| 4 | symbol1 v=none color=red line=1; |
| 5 | symbol2 v=none color=blue line=2; |
| 6 | symbol3 v=none color=green line=3; |
| 7 | RUN; |