View Full Version : Selecting a denominator?


commutergirl
03-14-2009, 09:28 AM
Hi.. I have a basic question that has me stumped. I am running proc freqs (unweighted and weighted) on a data set. How do I select the denominator I want (the 'out of X variable, what % of Ys are there?'). I am trying to do it within my derived variable creation but it isn't working.
Any help appreciated, thanks!

vinux
03-15-2009, 03:28 AM
I didn't get your question. It seems X and Y are categorical variable right?

In that case you can use

proc freq;
tables X*Y;
run;

Bala
04-21-2009, 12:39 AM
Hi,

I think Question is not clear...

If you want a independent number as your denominator, you can store the result of the freq proc as a dataset and then you can define your denominator...