BookmarkSubscribeRSS Feed
stuart_allen
Calcite | Level 5
I'm fairly new to SAS, using LIFETEST with the TEST statement, looking at association between covariates and survival time. I've noticed that if I run PROC LIFETEST several times, testing only a single variable each time (say 'age', then 'sex', then 'weight') I get a different set of results than if I use multiple variables within a single PROC LIFETEST (TEST age sex weight;). I am talking about results for only "Univariate Chi-Squares for the Log-Rank Test".

The results are similar, but not the same - I was under the impression that by using multiple variables in the TEST statement it would simply run a univariate test for each variable in turn, but the differing results suggest otherwise.

Any advice would be greatly appreciated!
Thanks.
4 REPLIES 4
Doc_Duke
Rhodochrosite | Level 12
the first thing to look at are missing values. If you have any missing values for ANY variable in the TEST statement, that observation will be deleted and all the results change a little.
stuart_allen
Calcite | Level 5
Ah, so observations are deleted where ANY of the variables are missing, and then the results computed.

I suspect that is probably the answer! Thanks!
Doc_Duke
Rhodochrosite | Level 12
Yup. It is in the reference manual for LIFETEST under Missing data.

It is the normal behavior for most stat procedures in SAS (as well as other stat packages). Pairwise deletion is the exception (as in PROC CORR).

Doc
stuart_allen
Calcite | Level 5
I see it now:

"If any variable specified in the TEST statement has a missing value, that observation is not used in the calculation of the rank statistics."

Just need to know where to look! Very helpful, thanks again.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

What is ANOVA?

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.

Discussion stats
  • 4 replies
  • 1671 views
  • 0 likes
  • 2 in conversation