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