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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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