BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am making a table which has both a total row and a total column. The lower right cell is supposed to be a total of all the row totals above it. The column and row totals are calculated differently to compensate for weights, so the column totals cannot be used for this.

I can get the sum for the lower right cell using proc sql, but I can't figure out how to get it into the table. The best I can think of is using a macro to define a global variable, but I can't quite get that to work. Any suggestions?
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
The best feedback from forum subscribers will be gained by first sharing your code and an input and output data example (small but representative). Also, info about your SAS version, OS platform, sometimes helps, as well.

Scott Barry
SBBWorks, Inc.
Peter_C
Rhodochrosite | Level 12
proc tabulate/proc means SUMWGT statistic

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
  • 944 views
  • 0 likes
  • 3 in conversation