0
votes

I need to create a two-way table without row and column total.

here is the code:

proc freq data = freq_table1 ; 
    table c * x / norow nocol nopercent ;
    title "x";
run;

the output is:

enter image description here

I actually want:

enter image description here

Also, does anyone have an idea how to re-order the frequency table from 0-1 to 1-0?

Thank you very much! JH

1

1 Answers

1
votes

The best choice here is probably to use proc tabulate, as that gives you more control over the layout.

proc tabulate data = sashelp.class ; 
    class age height;
    tables age,height*n;
run;