I am working with a data set with several categories, each category has a set of responses. I need to find the median in each category, then subtract that value from each response in that category. I am a complete noob, trying to lean (the ultimate goal is to make a program that will do the modified Leveren's test (yes, I know SAS does that, but I am try to learn how to program).
I can get the median values using this:
proc means data=circuit median; var response; class category; output out=medY; proc print; run;
The data is in a set called circuit and I have made it as generic as possible (calling the class category and the responses response).
Trouble is, that gets me the median value, and puts it into a data set called medY, but I need the median for each class subtracted from each member in that class, so I have to separate them some how.
Any help would be very gratefully appreciated.
Using the latest University Edition of SAS
... View more