Output multiple proc freq tables

Reply
Frequent Contributor
Posts: 131

Output multiple proc freq tables

Hello!

I have multiple frequency tables which I've ouputted to a PDF, where each table is for one of n sites from the a given data set.  I'd like to join these n tables together into one, however.  Would you have suggestions for how?

Many thanks in advance!

Super Contributor
Posts: 490

Re: Output multiple proc freq tables

Use

ODS OUTPUT ONEWAYFREQS;

Frequent Contributor
Posts: 131

Re: Output multiple proc freq tables

To clarify, I have tables in this format:

Title: Site1

                              Freq     Count

     RA=Treatment

     RA= Control

but I'd like it as follows

Site1                           Freq     Count

     RA=Treatment

     RA= Control

Site2               

     RA=Treatment

     RA= Control

Site3                          

     RA=Treatment

     RA= Control

...

Would onewayfreqs work for this?


Thank you!

Super User
Posts: 17,780

Re: Output multiple proc freq tables

Look at proc tabulate instead since I assume you're using ODS.

If you want a bit more manual control look at the code here:

SAS - One Way Summary Table

Ask a Question
Discussion stats
  • 3 replies
  • 203 views
  • 3 likes
  • 3 in conversation