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 ;