Hello all.
What are the most commonly used statistical tests for comparing the average length of a hospital stay? Should I be thinking in terms of comparing the medians instead of the averages? The data I have come from two separate groups of patients undergoing the same procedure. Thanks in advance.
Look at NPAR1WAY example :
If you can show a significant location difference with the Wilcoxon test then you needn't look any further.
PG
Truncated means and trimmed means are another approach for testing your problem.
Check the distribution of the data. If normally distributed then use averages, times are rarely normally distributed though, so median tends to be used instead.
Another option is to use log(time) instead, but again you'll need to verify the distribution of the data.
You can compare it with logistic regression ( for example if a patient stay more than 7 days 1 else 0) for each hospital.
(check proc logistic and proc genmod in SAS)
Look at NPAR1WAY example :
If you can show a significant location difference with the Wilcoxon test then you needn't look any further.
PG
You might also look at the differences in the distributions of the length of stay for the two groups of patients using PROC LIFEREG (multiple parametric distributions) or PROC LIFETEST (nonparametric distributions).
Thanks for all the suggestions. I did the analysis using NPAR1WAY and did find significance with the Wilcoxon test. The LIFETEST and LOGISTIC approaches seem interesting as well, but I am not sure I will have the time to pursue this analysis further.
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.