Hi:
I'm looking to get KM stats for 25th percentile, median & 75th percentile, but can't understand what's the issue. I have 2 treatment groups instead of 3. 1 group with missing data. Below is the data and the program.
Program:
ods output Quartiles=quartiles;
proc lifetest data=adtte1 method=KM alpha=0.05 conftype=loglog;
where trtpn ^= 2;
time AVAL*CNSR(1);
strata trtpn/notest;
run;
Issue is I don't get the stats for each treatment group. Each treatment group has 2 records.
Yes, that's right. The data is in a developing stage, but keeping my program ready. Just want to make sure the syntax is right.
Your syntax is correct, but you cannot calculate quartiles off 2 data points per group.
Are you sure that where Trtpn ^= 2 leaves three treatment groups in the data? From that output it looks like the WHERE statement removed the level 2 values.
Yes, for trtpn=2 i removed the values since they don't have any records.
@rajredy7172012 wrote:
Yes, for trtpn=2 i removed the values since they don't have any records.
So if you have 3 levels of the variable trtpn and you remove one why would you expect any data in the output for it? And missing records means that you only had two levels to begin with. So really, where is the expectation of getting output for non-existent values?
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.