BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I want to make a table in report format showing results for individuals in two groups and then also means by group. I would like the means for each group to be listed directly under the individual results for that group.

When I do this in SAS (not EG), using proc tabulate, the means are displayed directly under each group. However, when I do this in EG and output in SAS Report format, the means for the two groups are listed at the bottom of the table. Why is this? If I change the output to RTF, the means are displayed as I want them. Is there any way to change this?

Below is the code:
PROC TABULATE
DATA=WORK.CS;
VAR Depression;
CLASS Day / ORDER=UNFORMATTED MISSING;
CLASS group/ ORDER=UNFORMATTED MISSING;
CLASS id / ORDER=UNFORMATTED MISSING;
TABLE /* Row Dimension */
group_name*( id ALL={LABEL='Total'}) ALL={LABEL='Total'},
/* Column Dimension */
Day* Depression={LABEL=' '}* Sum={LABEL=' '}*F=2.0 ; ;

RUN;
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
I believe you are running into this behavior:
http://support.sas.com/kb/18/948.html

The Tech Support note explains that the SASReport XML format does not work the same way with PROC TABULATE group totals as the other destinations. The only workaround is to pick another output type (destination) such as HTML or RTF.

cynthia

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 577 views
  • 0 likes
  • 2 in conversation