I have a data set where a "count" variable means there are X numbers of individuals with the preceding characteristics in that observation. See below as an example. In the first observation, 3 means there are three 24 year-old males who scored 100.
data sample;
input age score sex$ count;
datalines;
24 100 M 3
25 95 F 2
25 97 M 2
20 86 M 3
30 100 F 2
;
RUN;
Let's say I wanted to do a proc freq of sex * score.
PROC FREQ data=sample;
TABLES sex*score;
run;
Is there a way to call out the actual number of each sex achieving each score by using the "count" value for each observation? My code above counts only one sex per row, obviously.