BookmarkSubscribeRSS Feed
New2SAS2
Calcite | Level 5
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 ;
1 REPLY 1
ArtC
Rhodochrosite | Level 12
If you do not get an answer, you may want to post this in the statistics forum.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 979 views
  • 0 likes
  • 2 in conversation