pseudosurv

SAS and R functions to compute pseudo-values for censored data regression. Recently, in a series of papers, a method based on pseudo-values has been proposed for direct regression modeling of the survival function, the restricted mean and cumulative incidence function with right censored data. The models, once the pseudo-values have been computed, can be fit using standard generalized estimating equation software. Here we present SAS macros and R functions to compute these pseudo-values. We illustrate the use of these routines and show how to obtain regression estimates for a study of bone marrow transplant patients. .. The SAS macro and R function “pseudosurv” compute pseudo-values for modeling the survival function based on the Kaplan–Meier estimator. The SAS macro and R function “pseudomean” provide pseudo-values for the restricted mean survival time. The SAS macro and R function “pseudoci” provide pseudo-values for the cumulative incidence function for competing risks data.