BookmarkSubscribeRSS Feed
RCPenguin
Calcite | Level 5

Hello all,

I have a data set with test scores and I am trying to compare scores of subject a to subject b (for only only gender)

I attempted to do a Wilcoxon-Rank sum test but I cannot use my class as gender when I proc npar1way because I need it to look at the two subjects not the two different genders as all genders for my data being used will be used one particular gender.  My question is am I able to create an overarching variable that I can put my subjects in.  Something along the lines of subject: a=0, b=1, c=2, d=3 and so on so that I can eventually do

proc npar1way wilcoxon data = ...

class subject;

var diff;

You get the idea.  Very dirty code at the moment but this has been racking my brain and I am not sure if I should just use a different nonparametric test (like Wilcoxon Signed Rank) or maybe a parametric test.  Thank you for your time.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 0 replies
  • 625 views
  • 0 likes
  • 1 in conversation