Hi,
I will be greatful if any one can help me to break the problem
I have a dataset with following variables
gender agegroup paper1 paper2 web1 web2 .........................
1 1 1 0 0 1
2 3 0 0 1 1
1 2 1 1 1 0
2 3 1 1 0 1
gender 1=male,2=female
age group 1=18-24, 2=25-30 3=31-35
paper read=1 not read=0
i would like to find
gender wise age group wise how many people read at least any of two
Can any one can suggest the best way to find, please see my code
Thanks & Regards,
Suresh
here is my code tried with Proc Freq and Proc Tabulate :
PROC FREQ DATA=WORK.test
ORDER=INTERNAL
;
TABLES gender / NOPERCENT NOCUM SCORES=TABLE;
TABLES agegroup / NOPERCENT NOCUM SCORES=TABLE;
BY paper1 paper2 web1 web2
RUN;
CODE 2 WITH PROC TABULATE :
PROC TABULATE
DATA=work.test1
;
CLASS gender / ORDER=UNFORMATTED MISSING;
CLASS agegroup / ORDER=UNFORMATTED MISSING;
CLASS paper1 / ORDER=UNFORMATTED MISSING;
CLASS paper2 / ORDER=UNFORMATTED MISSING;
CLASS web1 / ORDER=UNFORMATTED MISSING;
CLASS web2 / ORDER=UNFORMATTED MISSING;
TABLE /* Row Dimension */
paper1
paper2
web1
web2
/* Column Dimension */
gender*
agegroup*
N ;
;
RUN;