Programming the statistical procedures from SAS

difference between two medians - 95% CI

Reply
Contributor
Posts: 30

difference between two medians - 95% CI

how can I get the 95% confidence interval for the difference between two medians?

SAS Super FREQ
Posts: 3,554

Re: difference between two medians - 95% CI

The NPAR1WAY procedure uses nonparametric tests to compare independent distributions. You can use the WILCOXON option to test for difference in location and use the MEDIAN option to requests the median test for difference. An example is provided in the documentation of PROC NPAR1WAY.

Contributor
Posts: 30

Re: difference between two medians - 95% CI

yes, but it does not provide the 95% confidence interval for the difference between the two medians.  do you know how to get that?

Respected Advisor
Posts: 3,780

Re: difference between two medians - 95% CI

Contributor
Posts: 30

Re: difference between two medians - 95% CI

No, that is for paired.  My scenario is for unpaired.

Super User
Posts: 18,589

Re: difference between two medians - 95% CI

Isn't odd to use the 95% CI for medians? Isn't the IQR or a different non parametric estimate used instead?

Respected Advisor
Posts: 3,780

Re: difference between two medians - 95% CI


msecic wrote:

No, that is for paired.  My scenario is for unpaired.


Look again.

Ask a Question
Discussion stats
  • 6 replies
  • 261 views
  • 2 likes
  • 4 in conversation