08-15-2014 10:14 AM
I am looking for a very easy way to custom order variables within a data set. For example, I have a dataset with variables currently in order x a b y z c
And I would like to reorder them a b c x y z.
I have looked at a few methods (e.g., order=) but they all seem like circuitous methods. What is the easiest way?
Thank you in advance.
09-08-2014 06:37 PM
Within a single variable, is there a way to custom order the outputs in proc freq?
var1 = c a b
var2 = 1 2 3
proc freq data;
display such that table outputs as
1 2 3
09-09-2014 09:54 AM
If I understand it correctly you are looking for a cross tab like this
input var1 $ var2;
proc freq data=have;
table var1*var2/nocol norow nopercent ;
Need further help from the community? Please ask a new question.