Hmm...please post a proc contents on the survival_rates data set.
Note that your next step uses the survplot data set not the survival_rates data.
proc contents data=survival_rates;run;
From the documentation the OUTSURV/OUTS data sets include the following, which is what I get in my test. What happens if you run the code below? Does that generate the confidence intervals?
title 'Survival of Males with Angina Pectoris';
data Males;
keep Freq Years Censored;
retain Years -.5;
input fail withdraw @@;
Years + 1;
Censored=0;
Freq=fail;
output;
Censored=1;
Freq=withdraw;
output;
datalines;
456 0 226 39 152 22 171 23 135 24 125 107
83 133 74 102 51 68 42 64 43 45 34 53
18 33 9 27 6 23 0 30
;
ods graphics on;
proc lifetest data=Males
plots=(s,ls,lls,h,p) outs=survival_Rates timelist = (0 to 15 by 3) reduceout;
time Years*Censored(1) ;
freq Freq;
run;
ods graphics off;
OUTSURV= Data Set
You can specify the OUTSURV= option in the PROC LIFETEST statement to create an output data set that contains the survival estimates. The data set contains the following columns:
-
any specified BY variables
-
a numeric variable STRATUM
that numbers the strata, if you specify the STRATA statement
-
any specified STRATA variables, their values coming from either their original values or the midpoints of the stratum intervals if endpoints are used to define strata (semi-infinite intervals are labeled by their finite endpoint)
-
the GROUP= variables, if you specify the GROUP= option in the STRATA statement
-
the time variable as specified in the TIME statement. For METHOD=KM, METHOD=BRESLOW, or METHOD=FH, it contains the observed failure or censored times. For the life-table estimates, it contains the lower endpoints of the time intervals.
-
SURVIVAL
, a variable that contains the survivor function estimates
-
CONFTYPE
, a variable that contains the name of the transformation applied to the survival time in the computation of confidence intervals
-
SDF_LCL
, a variable that contains the lower limits of the pointwise confidence intervals for the survivor function
-
SDF_UCL
, a variable that contains the upper limits of the pointwise confidence intervals for the survivor function
@hpatel3 wrote:
yes! I have the survival rates and quartile estimates, but not the confidence limits.