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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 587 views
  • 0 likes
  • 2 in conversation