Can you designate which statistics to output into a new dataset using PROC FREQ?
proc freq data=go_long ;
tables exam*htn / nocol nopercent out=htn_plot;
run;
The above syntax produces the correct table, which has counts and row percentages for each value of exam:
![Screenshot 2024-06-04 at 1.39.24 PM.png Screenshot 2024-06-04 at 1.39.24 PM.png](https://communities.sas.com/t5/image/serverpage/image-id/97012i8F50C1DFC3F19AAF/image-size/medium?v=v2&px=400)
But the output dataset does not contain the row percentages, which is what I want (it looks like it contains total percent).
proc print data=htn_plot; where htn=1; run;
![Screenshot 2024-06-04 at 1.39.53 PM.png Screenshot 2024-06-04 at 1.39.53 PM.png](https://communities.sas.com/t5/image/serverpage/image-id/97013i5EA2B181ED51B313/image-size/medium?v=v2&px=400)
Is there a way I can specify which stats (i.e., counts and row percentages) to output using PROC FREQ?
Thanks.