Date: Tue, 28 Mar 2000 16:54:20 -0500
Reply-To: Eric Turkheimer <turkheimer@VIRGINIA.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Eric Turkheimer <turkheimer@VIRGINIA.EDU>
Organization: University of Virginia
Subject: PROC FREQ Output Dataset
Content-Type: text/plain; charset=us-ascii
It seems like there must be a simple way to do this. I want to output a
dataset from PROC freq that has one observation for each unique
combination of variables in the table, with a varible that contains the
freqency of that cell.
So for a dataset like:
X Y
3 3
3 2
3 2
2 3
proc freq;tables x*y;
output.....
The output dataset would contain
X Y _FREQ_
3 3 1
3 2 2
2 3 1
Thanks,
Eric
|