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 ...

Get Survival Analysis Using SAS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.