Professional Documents
Culture Documents
57
59
62
68
69
78
79
88
91
97
98
104
106
119
121
135
143
150
154
158
162
190
206
209
228
229
242
248
249
252
273
291
297
311
334
340
344
346
354
366
391
402
421
439
450
470
478
481
490
495
570
583
614
615
621
652
697
730
773
776
790
793
806
840
852
864
875
929
939
943
945
146
145
145
145
145
145
145
143
143
141
141
141
141
135
134
133
133
133
132
132
131
130
129
128
127
127
125
125
125
124
122
121
121
120
117
117
117
116
116
116
116
115
113
113
111
109
109
108
108
108
105
105
105
105
105
102
97
97
95
95
93
93
93
93
93
91
88
82
80
80
79
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
673
672
671
665
663
662
661
655
654
652
651
649
645
638
637
634
631
629
626
625
625
616
610
610
605
604
599
595
594
591
579
573
572
570
564
561
556
556
553
551
543
540
536
530
526
524
523
522
519
516
504
499
494
493
492
487
473
467
455
454
451
450
449
446
445
444
442
431
430
429
429
1
1
2
2
1
1
1
1
1
1
2
1
1
1
0
1
1
1
1
0
1
1
0
1
1
0
1
1
1
1
1
1
1
1
1
1
0
1
1
1
1
0
1
1
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
1
0
1
0
2
819
817
816
810
808
807
806
798
797
793
792
790
786
773
771
767
764
762
758
757
756
746
739
738
732
731
724
720
719
715
701
694
693
690
681
678
673
672
669
667
659
655
649
643
637
633
632
630
627
624
609
604
599
598
597
589
570
564
550
549
544
543
542
539
538
535
530
513
510
509
508
2
1
2
2
1
1
1
1
1
1
2
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
946
1001
1013
1016
1105
1164
1186
1191
1196
1210
1275
1326
1331
1357
1384
1388
1418
1473
1509
1734
1777
1820
1835
1877
1940
2034
2056
2108
2171
2276
2291
2301
2313
2369
2414
2421
2489
2557
2567
2650
2795
3146
;
run;
79
75
73
73
72
67
66
66
66
65
62
59
59
58
58
57
57
55
54
48
46
43
43
43
42
39
38
36
36
33
32
31
31
31
28
27
22
22
21
19
12
6
0
1
0
1
0
0
0
0
1
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
1
1
0
0
1
0
1
0
0
427
419
418
417
407
390
388
387
386
382
368
356
355
352
344
343
341
328
323
281
267
252
251
246
238
215
204
191
185
167
167
165
163
152
148
147
134
124
124
112
85
33
1
0
1
0
1
1
1
1
0
1
0
1
1
1
0
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
1
1
1
0
0
1
1
0
1
0
1
1
506
494
491
490
479
457
454
453
452
447
430
415
414
410
402
400
398
383
377
329
313
295
294
289
280
254
242
227
221
200
199
196
194
183
176
174
156
146
145
131
97
39
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
data table7_2;
set table7_2;
col8=Yi1*(di/Yi);
col9=di1-Yi1*(di/Yi);
col10=di*(yi1/Yi)*(1-Yi1/Yi)*((Yi-di)/(Yi-1));
run;
proc
Answer (a)
Rank Statistics
race Log-Rank Wilcoxon
1
-4.6468
-1285.0
4.6468
1285.0
19.4303 -19.4303
-19.4303 19.4303
Variable
Sum
col9
4.6468274
col10
19.4303000
4.64
19.43
= 1.0526
Which represent a P-value greater than 0.2 (SAS= 0.2918) which for a level
of significance of 5% provides a high probability of reject the null
hypothesis being this true, so we end up accepting the null hypothesis. Then
we conclude that there is no significant difference between the races for the
time to event.
(b) Test the hypothesis that blacks have a higher mortality rate than white
without adjusting sex;
Code for answer (b)
data Male;
set dog.sec1_7;
if gender=1;
run;
/*to obtain Yi1 and di1*/
proc lifetest data=Male atrisk ;
time time*delta(0);
where race=1;
run;
/*to obtain Yi2 and di2*/
proc lifetest data=Male atrisk;
time time*delta(0);
where race=2;
run;
1210
1275
1357
1384
1388
1418
1509
1734
1820
2056
2291
2313
2369
2414
2421
2489
2557
3146
;
run;
42
39
37
37
36
36
35
31
28
25
22
21
21
19
18
15
15
3
0
1
0
1
0
0
0
0
0
0
0
0
1
1
0
0
1
0
223
215
208
203
202
200
187
159
140
113
91
89
81
80
79
71
66
17
1
0
1
0
1
1
1
1
1
1
1
1
0
0
1
1
0
1
265
254
245
240
238
236
222
190
168
138
113
110
102
99
97
86
81
20
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
data example7_8;
set example7_8;
col8=Yi1*(di/Yi);
col9=di1-Yi1*(di/Yi);
col10=di*(yi1/Yi)*(1-Yi1/Yi)*((Yi-di)/(Yi-1));
run;
proc means data=example7_8 sum;
var col9 col10;
run;
data Female;
set dog.sec1_7;
if Gender=2;
run;
/*to obtain Yi1 and di1*/
proc lifetest data=Female atrisk ;
time time*delta(0);
where race=1;
run;
/*to obtain Yi2 and di2*/
proc lifetest data=female atrisk;
time time*delta(0);
where race=2;
run;
/*to obtain Yi and di*/
proc lifetest data=female atrisk;
time time*delta(0);
run;
45
50
52
62
68
78
97
104
106
121
143
154
209
229
273
297
344
366
470
490
614
793
840
852
864
929
943
1013
1016
1164
1196
1326
1331
1473
1777
1835
1877
1940
2034
2108
2171
2276
2301
2567
2650
2795
;
run;
57
56
56
56
56
56
55
55
55
52
51
51
51
51
47
47
45
44
42
42
41
37
37
37
37
30
29
26
26
24
24
21
21
20
15
15
15
15
13
13
13
11
10
7
7
5
1
0
0
0
0
0
0
0
1
1
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
1
1
0
1
0
1
0
0
0
0
0
0
0
0
0
1
1
0
0
1
0
265
264
262
261
259
258
255
254
252
250
247
245
238
237
227
225
219
218
206
205
199
179
178
177
176
171
171
167
166
161
160
147
146
138
120
112
110
106
96
87
85
76
76
58
54
41
0
1
1
1
1
1
1
1
0
0
1
1
1
0
1
1
0
1
1
1
1
1
1
1
0
0
0
1
0
1
0
1
1
1
1
1
1
1
1
1
0
0
1
1
0
1
322
320
318
317
315
314
310
309
307
302
298
296
289
288
274
272
264
262
248
247
240
216
215
214
213
201
200
193
192
185
184
168
167
158
135
127
125
121
109
100
98
87
86
65
61
46
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
data example7_8;
set example7_8;
col8=Yi1*di/Yi;
col9=di1-Yi1*di/Yi;
col10=di*(yi1/Yi)*(1-Yi1/Yi)*((Yi-di)/(Yi-1));
run;
proc means data=example7_8 sum;
var col9 col10;
run;
/* the chi-square value from the hand calculation above can be obtained by
lifetest*/
proc lifetest data=dog.sec1_7 ;
time time*delta(0);
test race;
strata Gender;
run;
proc
Answer (b):
Group Male:
Variable
Sum
col9
-1.0998326
col10
12.4670848
Group Female:
Variable
Sum
col9
5.7861738
col10
6.9066296
(5.78 1.09)
(12.46 + 6.9)
= 1.065
4.4021
1.1333
0.2871 race