/* Programs for labnote 4 */ /* Prepared by Sheng Luo */ DATA recid; SET "C:\Documents and Settings\Xianghua Luo\My Documents\courses\140.641\website\recid"; RUN; proc lifereg data=recid; model week*arrest(0)=fin age race wexp mar paro prio / dist=lnormal; run; proc lifereg data=recid; model week*arrest(0)=fin age race wexp mar paro prio / dist=exponential; run; proc lifereg data=recid; model week*arrest(0)=fin age race wexp mar paro prio / dist=weibull; run; proc lifereg data=recid; model week*arrest(0)=fin age race wexp mar paro prio / dist=llogistic; run; /*Generalized gamma model*/ proc lifereg data=recid; model week*arrest(0)=fin age race wexp mar paro prio / dist=gamma; run;