the structure of data set follows:
data have; input name $ year cat var1 var2 var3; datalines; adam 2011 1 7 8 7 bob 2011 2 0 1 0 clint 2011 1 0 0 0 adam 2011 9 15 8 9 bob 2011 9 4 56 3 clint 2011 9 8 4 2 adam 2012 1 4 5 6 bob 2012 2 3 1 1 clint 2012 1 1 2 3 adam 2012 9 17 8 6 bob 2012 9 17 2 6 clint 2012 9 13 8 4 ; run;
now make proc freq conditional on 2 variables (at least). tried
proc freq data=have; year = 2012 , cat=9; tables var1 * var2; quit;
as as
proc freq data=have; year = 2012; cat=9; tables var1 * var2; quit;
but don't work , couldn't find solution on web.
any ideas welcomed!
gerit
you close:
proc freq data=have; year = 2012 , cat=9; tables var1 * var2; quit;
you can read more where
here: http://support.sas.com/documentation/cdl/en/lrdict/64316/html/default/viewer.htm#a000202951.htm
Comments
Post a Comment