BookmarkSubscribeRSS Feed
cjmcgath_verizon_net
Calcite | Level 5

When I create an output data set in PROC TABULATE, the column heading includes the statistic for each variable.  For instance, the summed FEED variable is labeled "FEED_Sum".  Can I suppress the "Sum"?

2 REPLIES 2
ballardw
Super User

You could rename the variable(s) (data set option on the next step that uses the data OR proc datasets) but if you are asking for 2 or more statistics for the same variable then what? You can't rename Feed_Sum and Feed_N to the same thing.

It may be that you could do a similar summary with Proc means/summary as then a single statistic could retain the original variable name.

Reeza
Super User

Yes. It helps if you post your code but something like the following. Note that it is =with single or double quotes that are empty which erases the label.  You can also add in a custom label if you wanted.

proc tabulate data=sashelp.cars;

class make model;

var mpg_city mpg_highway;

table make*model, mpg_city*mean='' mpg_highway*mean='';

run;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2 replies
  • 658 views
  • 6 likes
  • 3 in conversation