Example 7 for PROC LIFEREG
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: LIFEREX7 */
/* TITLE: Example 7 for PROC LIFEREG */
/* PRODUCT: STAT */
/* SYSTEM: ALL */
/* KEYS: survival data analysis, Bayesian analysis */
/* PROCS: LIFEREG */
/* DATA: */
/* */
/* SUPPORT: lichen */
/* REF: PROC LIFEREG, EXAMPLE 7. */
/* MISC: */
/****************************************************************/
data e1684;
input survtime survcens age sex perform;
datalines;
1.57808 2 35.9945 1 0
1.48219 2 41.9014 1 0
7.33425 1 70.2164 2 0
0.65479 2 58.1753 2 1
2.23288 2 33.7096 1 0
9.38356 1 47.9726 1 0
3.27671 2 31.8219 2 0
0.00000 1 72.3644 2 0
0.80274 2 40.7151 2 0
9.64384 1 32.9479 1 0
1.66575 2 35.9205 1 0
0.94247 2 40.5068 2 0
1.68767 2 57.0384 1 0
5.94247 2 63.1452 1 0
2.34247 2 62.0630 1 0
0.89863 2 56.5342 1 1
9.03288 1 22.9945 2 0
9.63014 1 18.4712 1 0
0.52603 2 41.2521 1 0
1.82192 2 29.5178 1 0
0.93425 2 59.0493 2 0
8.98630 1 32.2877 1 0
1.82740 2 54.1452 1 0
9.35890 1 26.7178 1 0
3.35068 2 26.4822 1 0
8.67397 2 55.0411 1 0
6.09589 1 46.6986 1 0
0.41096 2 55.1233 2 0
2.78630 2 22.4055 2 0
2.56438 2 50.8466 1 0
8.75342 1 56.0274 1 0
8.75890 1 38.0411 1 0
0.56986 2 55.4767 1 0
8.40000 1 41.2411 1 0
7.25205 1 32.7425 1 0
4.38630 2 45.3479 1 0
8.36712 1 42.8438 2 0
5.57260 2 . . .
8.99178 1 51.1068 1 0
0.86575 2 30.1808 1 0
4.76986 1 58.7014 2 0
1.15616 2 51.5397 1 0
7.28767 1 27.1973 1 0
3.13151 2 67.6740 1 0
8.28767 1 65.5945 2 0
8.55068 1 64.4274 2 0
2.21918 2 69.8712 1 0
8.45753 1 35.4411 1 0
4.59452 2 35.9452 1 0
2.88219 2 48.1370 1 0
0.89589 2 58.6082 1 0
1.76164 2 40.0137 2 0
7.81370 1 26.0055 1 0
8.33425 1 36.9616 1 0
2.62192 2 25.9068 2 0
0.16164 2 63.8055 1 0
8.24658 1 29.6986 2 0
1.52603 2 61.6384 1 1
5.30959 2 49.9918 1 0
4.03014 2 46.1836 2 0
0.87123 2 37.1068 1 1
0.41644 2 53.4658 2 0
8.39452 1 40.3836 1 0
4.24110 2 57.7425 2 0
0.13699 2 29.1479 1 0
7.07671 2 59.2466 1 1
0.13151 2 61.3507 2 0
8.02740 1 33.9205 2 1
6.16164 1 43.1918 1 0
1.29863 2 34.1890 2 0
1.29041 2 58.3808 2 1
7.99726 1 21.9479 2 0
8.34795 1 35.1151 1 0
7.30137 1 31.6493 1 1
2.32877 2 56.1890 1 0
0.56438 2 60.7123 1 0
5.62740 2 58.8329 2 1
1.23014 2 44.4849 2 0
7.94521 1 51.1315 2 0
1.51507 2 61.4795 1 1
5.06301 2 34.2164 1 0
3.27671 2 35.2301 1 0
0.60822 1 32.7425 2 0
0.65753 2 38.0986 2 0
0.84110 2 45.7699 1 0
8.40000 1 44.2000 1 0
7.96712 1 34.9452 2 1
0.18356 2 71.3260 1 0
2.62466 2 59.0795 1 0
2.55616 2 45.0795 2 0
7.96438 1 35.3836 2 0
7.77808 1 58.0438 2 1
0.22192 2 43.2164 1 0
2.33973 2 60.4932 1 0
0.52329 2 32.4795 2 0
8.04110 1 60.2986 1 0
7.83288 1 47.1342 1 0
1.74795 2 17.0411 2 0
0.64110 2 42.3233 1 0
0.38356 2 54.4164 1 0
7.82192 1 51.4219 1 0
0.51781 2 46.5973 1 0
8.09863 1 58.3562 1 1
8.16712 1 25.6712 2 0
4.42740 2 29.1726 1 0
0.88493 2 18.6795 1 0
2.78356 2 60.9671 2 0
2.64658 2 63.8849 2 0
8.21370 1 37.9808 2 0
7.41918 1 32.3507 2 0
0.99726 2 42.9589 1 0
5.88493 2 40.9562 1 0
0.41644 2 61.9753 1 0
0.64110 2 42.8000 2 0
3.53699 2 55.3315 2 0
7.56164 1 36.0767 1 0
7.53151 1 50.6795 1 0
0.27671 2 66.6986 1 0
7.35616 1 58.2822 2 0
0.76986 2 29.3479 2 0
7.62192 1 33.1863 1 0
7.79726 1 48.6356 2 0
0.64110 2 29.4877 1 0
1.14521 2 42.6685 1 0
2.01644 2 24.4055 2 0
2.84384 2 40.3890 1 0
7.00000 1 45.4192 1 0
1.27397 2 65.3945 1 0
7.09589 1 47.5753 2 0
2.04110 2 58.4438 2 0
0.83562 2 59.2767 2 0
0.92329 2 30.2630 2 0
2.15068 1 48.6493 1 0
0.07397 2 40.7370 1 0
7.30685 1 44.7452 1 0
2.07671 2 67.8329 1 0
0.34247 2 61.3507 1 0
7.70959 1 27.7452 1 0
2.26849 2 34.2521 1 0
6.15890 1 25.9260 2 1
6.89315 1 31.2740 1 0
3.30685 2 58.8822 2 0
0.36164 2 57.0575 1 0
1.97808 2 59.8137 1 0
1.23836 2 77.5151 1 0
0.10685 2 43.4219 1 0
4.26575 2 51.2767 1 0
7.63836 1 52.2082 1 0
2.06301 2 36.3205 2 0
7.42466 1 25.9781 1 1
7.04384 1 65.3644 1 0
0.50959 2 49.4411 1 0
0.65753 2 57.9589 1 1
6.93151 1 65.5644 1 0
7.23288 1 72.3425 1 0
6.01096 2 68.8548 1 0
0.33699 2 50.4438 2 0
6.47123 1 48.2877 1 0
0.94795 2 46.9479 2 0
2.91781 2 33.6000 2 0
1.11507 2 53.5863 1 0
1.59726 2 51.1644 2 0
0.97534 2 53.6904 1 1
0.84932 2 47.7836 1 0
1.38356 2 53.8795 2 0
3.81644 2 38.7068 2 1
7.06849 1 69.3205 2 1
7.04110 1 66.0219 1 1
1.00274 2 36.0329 2 0
6.34795 1 63.4603 1 0
1.18082 2 48.8986 2 0
0.97534 2 45.0575 1 0
2.16712 2 57.6712 2 0
6.85479 1 45.2000 1 0
1.38356 2 49.0438 1 0
1.71507 2 51.4630 1 0
0.79452 2 34.5479 1 0
6.86301 1 47.6438 2 0
6.50411 1 38.7233 2 1
0.42466 2 54.0658 1 0
6.30959 1 29.8137 1 0
0.98630 2 45.7397 1 0
6.13699 1 47.2822 2 0
3.80000 2 62.6411 1 0
6.48493 1 62.0192 2 0
6.96438 1 41.0904 2 0
6.78082 1 50.2712 2 0
0.56164 2 49.5288 2 0
2.67123 2 70.8192 1 0
1.56712 2 59.0712 1 0
2.07397 2 53.9041 1 0
0.33973 2 44.7342 1 0
3.37808 2 22.1397 1 0
3.15068 2 72.8575 1 0
6.81096 1 61.4521 1 0
3.20822 2 61.2904 1 0
0.62740 2 34.7507 1 0
1.64384 2 67.4164 2 0
1.40822 2 53.2493 1 0
6.06575 1 49.0082 1 0
1.66301 2 56.7699 1 0
1.36986 2 34.0247 2 0
5.46849 2 34.3014 2 0
0.42740 2 45.0712 2 0
1.13973 2 54.7671 2 0
1.73699 2 42.8548 2 0
5.54521 1 36.6301 2 0
0.85205 2 43.2466 1 0
0.58082 2 52.1699 2 0
0.43014 2 53.3562 1 0
1.20822 2 35.3534 1 0
4.36164 2 36.5233 1 0
0.52877 2 52.7863 1 0
6.51507 1 24.4329 2 0
2.89863 2 58.7178 1 0
6.20274 1 45.5479 1 0
1.21644 2 43.3014 2 0
6.00000 1 51.4055 2 0
6.25479 1 38.9671 2 0
6.49863 1 68.2658 1 0
1.13699 2 59.4493 2 1
1.69589 2 30.0192 1 0
6.41096 1 22.1562 2 0
6.02192 1 54.7671 1 0
3.04932 2 45.0384 1 0
5.62740 1 39.7589 1 1
0.72603 2 41.3808 1 0
0.73425 2 34.9671 1 0
1.22740 2 35.5726 1 1
1.47945 2 46.3479 1 0
0.37808 2 29.9233 2 0
5.75890 1 32.8740 1 0
1.48219 2 39.5397 2 1
5.88493 1 55.4822 1 0
1.80274 1 32.3562 1 0
1.40548 2 41.8027 2 1
4.74795 1 35.3452 2 1
5.24658 1 50.4795 1 0
0.29041 2 61.3507 2 0
5.83836 1 67.3562 1 1
5.32055 1 53.8548 2 0
5.16712 2 78.7315 2 0
5.59178 1 62.7233 1 0
5.77808 1 65.1507 1 0
0.53425 2 34.8274 1 0
2.22466 1 33.8466 2 0
3.59726 2 67.8822 1 0
5.32329 1 66.0712 2 0
1.78630 2 55.0658 2 0
0.70411 2 50.5123 1 0
4.94795 1 42.4055 2 0
5.45479 1 58.1068 2 0
4.32877 2 26.0137 1 0
1.16164 2 54.4685 1 0
5.20274 1 54.0630 2 0
4.40822 1 34.5589 1 0
1.41096 2 58.5068 1 0
4.92877 1 63.9370 1 0
5.42192 1 49.8274 2 0
0.98904 2 50.5562 1 0
0.36438 2 40.4795 2 0
4.38082 1 61.7479 2 0
2.12877 2 58.7589 1 0
0.77260 2 41.6712 1 1
4.90959 2 25.5096 1 0
1.26849 2 61.2000 1 0
0.58082 2 53.1260 1 0
4.95616 1 40.4658 1 0
5.12329 1 60.3068 1 0
4.74795 1 48.7425 2 1
4.90685 1 46.7562 2 0
0.86575 2 33.1178 2 0
1.41918 2 34.8932 2 0
0.44110 2 33.3096 1 0
4.29863 1 35.7589 1 0
4.63836 1 49.8575 1 0
4.81370 1 57.3726 2 0
4.50137 2 29.7726 2 0
3.92329 2 51.8822 2 0
4.86027 1 65.3123 2 0
0.52603 2 52.0658 2 0
2.10685 2 60.9534 2 0
4.24384 1 32.6055 2 0
3.39178 2 51.5123 2 1
4.36164 1 48.6548 1 0
4.81918 1 43.8438 2 0
;
ods graphics on;
proc lifereg data=e1684;
class Sex;
model Survtime*Survcens(1)=Age Sex Perform / dist=Weibull;
bayes WeibullShapePrior=gamma seed=9999;
run;
ods graphics off;
proc print data=e1684 (obs=20);
run;