附上一段程序:
- data dataset;input time status var;cards;23.2 1 166.2 1 03.7 1 13.6 1 05.0 1 132.9 1 065.8 1 12.6 0 02.8 0 11.9 0 03.3 0 15.2 0 09.6 0 17.3 0 047.8 0 15.0 0 03.0 0 153.0 0 023.0 0 11.0 0 0;run;
- ods graphics on;proc lifetest data=dataset plots=s(test); time time*status(0); strata var;run;ods graphics off;