## How to get the median difference and 95% credible interval for two sample test using non-parametric method?

Solved
Occasional Contributor
Posts: 7

# How to get the median difference and 95% credible interval for two sample test using non-parametric method?

Hi,

I have a continuous measurement for two treatment groups and standard deviation is quite large compared to the mean difference due to small sample size in these subgroups. How can I get  median difference and 95% credible interval using non-parametric method?

Thanks,

Shellee

Accepted Solutions
Solution
‎10-03-2013 11:30 AM
New User
Posts: 1

## Re: How to get the median difference and 95% credible interval for two sample test using non-parametric method?

confidence interval of Hodges-Lehmann's median ??

http://analytics.ncsu.edu/sesug/2008/ST-154.pdf

All Replies
Solution
‎10-03-2013 11:30 AM
New User
Posts: 1

## Re: How to get the median difference and 95% credible interval for two sample test using non-parametric method?

confidence interval of Hodges-Lehmann's median ??

http://analytics.ncsu.edu/sesug/2008/ST-154.pdf

Occasional Contributor
Posts: 7

## Re: How to get the median difference and 95% credible interval for two sample test using non-parametric method?

Thank you so much, damdisasterman.

My SAS version is 9.1, so I use the macro for the median and credible interval from the paper you refer to me.

Thanks,

Shellee

Posts: 3,852

## Re: How to get the median difference and 95% credible interval for two sample test using non-parametric method?

SAS calls this estimate of location shift.

SAS/STAT(R) 9.3 User's Guide

Occasional Contributor
Posts: 7

## Re: How to get the median difference and 95% credible interval for two sample test using non-parametric method?

Thank you very much for response to my question.

Thanks,

Shellee

Not applicable
Posts: 1

## Re: How to get the median difference and 95% credible interval for two sample test using non-parametric method?

Hi Shellee,

the following code might be useful:

proc nparway data = filename wilcoxon;

class group;

var PD;

output out=wilcoxon_test;

run;

You must stack the two treatment variables and classify with the variable group which has two values. You can also do the test via enterprise guide.

Sven

Occasional Contributor
Posts: 7

## Re: How to get the median difference and 95% credible interval for two sample test using non-parametric method?

Thank you so much for your response to my question, Sven.

Thanks,

Shellee

🔒 This topic is solved and locked.