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

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!

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