Hi all,
I'm analyzing NHANES data and have combined day 1 food intake and day 2 food intake into their own observation rows. Now I want to combine those rows into 1 row that shows days 1 and 2 intakes for each participant. For example:
SEQ | DR1T_G_WHOLE | DR1T_G_REFINED | DR2T_G_WHOLE | DR2T_G_REFINED |
1 | 5.2 | 4.01 | | |
1 | | | .8 | 1.2 |
2 | 1.0 | 2.2 | | |
2 | | | 2.5 | 0 |
How would I combine the 1s so all the cells are filled? I also have thousands of SEQ IDs.
I've tried proc means data= test noprint nway;
class SEQ;
var ...;
output out= sums;
run;
This led to a min max and std showing up as well, is there a way to remove those?