Programming the statistical procedures from SAS

how to get one-sided p value from wilcoxon signed rank test using proc univariate?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 12
Accepted Solution

how to get one-sided p value from wilcoxon signed rank test using proc univariate?

Proc Univariate provides two-sided p-value for wilcoxon signed rank test. If  n>20, can I divide the two-sided p-value by 2 to get one-sided p-value? Does SAS do normal approximation of signed rank statistics when n > 20? Thanks.


Accepted Solutions
Solution
‎10-11-2017 11:51 AM
Valued Guide
Valued Guide
Posts: 684

Re: how to get one-sided p value from wilcoxon signed rank test using proc univariate?

Be careful in the direction. The one-sided p-value is either P/2 or 1-(P/2), where P is the printed two-sided value. If the estimated statistic (or median, or mean, or whatever) is in the opposite direction of the alternative hypothesis, then the one-sided p-value will be a large number [1-(P/2)].

View solution in original post


All Replies
Regular Contributor
Posts: 239

Re: how to get one-sided p value from wilcoxon signed rank test using proc univariate?

In Common Statistical Methods for Clinical Research with SAS Examples, Third Edition (pg. 258), it states, "SAS uses the t-approximation to the Wilcoxon signed-rank test if n is greater than 20.  For n <=20, SAS computes the exact probability."  As for getting the 1-sided p-value from a 2-sided p-value, you should be able to simply divide by 2 as you suggested.

Solution
‎10-11-2017 11:51 AM
Valued Guide
Valued Guide
Posts: 684

Re: how to get one-sided p value from wilcoxon signed rank test using proc univariate?

Be careful in the direction. The one-sided p-value is either P/2 or 1-(P/2), where P is the printed two-sided value. If the estimated statistic (or median, or mean, or whatever) is in the opposite direction of the alternative hypothesis, then the one-sided p-value will be a large number [1-(P/2)].

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 2075 views
  • 1 like
  • 3 in conversation