HOMEWORK #2 due 10-11
NOTES: (This is also on the Math434 Web site.)
ltcmf.sas
or lthepat.sas
on the Math434 Web
site. Either of the two ways of entering the data in
lthepat.sas
may be easier than that in the first data step
in ltcmf.sas
.)
Table 1 - Survival distributions for two samples (Example 3.3 from p29 of text) 6-MP (n1=21) 6,6,6,6+, 7, 9+, 10,10+, 11+, 13, 16, 17+, 19+,20+, 22, 23, 25+, 32+,32+, 34+, 35+ Placebo (n2=21) 1,1, 2,2, 3, 4,4, 5,5, 8,8,8,8, 11,11, 12,12, 15, 17, 22, 23
Years Begin Deaths Dropped Yr.End 0-1 10000 134 953 8913 1-2 8913 366 221 8326 2-3 8326 574 148 7604 3-4 7604 720 74 6810 4-5 6810 1334 74 5402 5-6 5402 770 48 4584 6-7 4584 775 33 3776 7-8 3776 788 25 2963 8-9 2963 587 20 2356 9-10 2356 876 14 1466 10-11 1466 418 12 1036 11-12 1036 332 3 701 12-13 701 0 701 0
(i) Use proc lifetest
in SAS to plot the survival and
hazard functions for the 10,000 individuals over this time span and make
sure that the plots are in your output. Use the actuarial method to
estimate the hazard rate for each year. (That is, use the appropriate
options in proc lifetest
. See page 13 in the
text. Note also ltangina.sas
on the Math434 Web site.)
(ii) What are the estimated hazard rates during the twelve years? (Or else say where they can be found in your output.) Does the hazard rate appear high in any of the years?
NOTE: SAS's proc lifetest only allows you to enter numbers of deaths and censored individuals for each year. There is no way to enter the initial sample size, here 10,000. Thus if you do not include the 701 12-th-year survivors somewhere in the input, then SAS will assume that your starting sample was 10,000-701=9299 instead of 10,000. That is one of the reasons for the final line in the table above.