Help using Base SAS procedures

Question about setting up Kendalls Tau and Wilcoxon

Reply
N/A
Posts: 1

Question about setting up Kendalls Tau and Wilcoxon

Hi, I am totally new to this and should know the answer, but here:
I need a p-vale for my Kendalls Tau test, and I think I use Wilcoxon code to get the output, but am not sure what to put in the class, var, and freq parts of the code (see the bottom). Help or ideas?

data hmwk53tau ;
input age strength @@ ;
cards ;
3 2500 7 3200 15 4300 24 5300 85 5900 180 6700 360 6900
;
proc print ; run ;

* Two ways to calculate Kendall's tau-b in SAS ;
proc freq data = hmwk53tau ;
tables age*strength / measures ;
run ;

proc corr data = hmwk53tau kendall ;
var age strength ;
run ;

* Since the response is ordered, we can alternatively use Wilcoxon's test ;
proc npar1way data = hmwk53tau wilcoxon ;
class age ;
var strength ;
freq count ;

exact wilcoxon / n = 5000 ;
run ;
Valued Guide
Posts: 634

Re: Question about setting up Kendalls Tau and Wilcoxon

If you do not get an answer, you may want to post this in the statistics forum.
Ask a Question
Discussion stats
  • 1 reply
  • 100 views
  • 0 likes
  • 2 in conversation