O'Reilly logo

Survival Analysis Using SAS by Paul D. Allison

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX 1

Macro Programs

Introduction

The LIFEHAZ Macro

The PREDICT Macro

INTRODUCTION

In the main text, I introduced two macros for carrying out certain auxiliary analyses with PROC LIFEREG. They are listed here with instructions and background information. They are also available on the Web at www.pauldallison.com.

Both of the macro programs use keywords for the required and optional parameters. Default values (if any) are given after the equal sign in the parameter list. Thus, you only need to specify parameters that differ from the default value, and you can specify these parameters in any order in the macro call.

THE LIFEHAZ MACRO

The LIFEHAZ macro produces parametric plots of hazard functions based on models fitted by PROC LIFEREG. In ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required