Help using Base SAS procedures

Total Row

Reply
N/A
Posts: 0

Total Row

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?
Super Contributor
Super Contributor
Posts: 3,174

Re: Total Row

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.
Valued Guide
Posts: 2,175

Re: Total Row

proc tabulate/proc means SUMWGT statistic
Ask a Question
Discussion stats
  • 2 replies
  • 254 views
  • 0 likes
  • 3 in conversation