I’m using PROC TABULATE in SAS to create a table with nested row headers (e.g., sec_sr_no='Sr. No.', SECTOR_NAME='Sector', subsec_sr_no='Sr. No.', SUB_SECTOR_NAME='Sub-Sector') and a summarized variable (Ext_tot_Outlay with SUM). My current code is:
PROC TABULATE DATA=dataset FORMAT=COMMA12.;
CLASS sec_sr_no SECTOR_NAME subsec_sr_no SUB_SECTOR_NAME;
VAR Ext_tot_Outlay;
TABLE sec_sr_no='Sr. No.' * SECTOR_NAME='Sector' * subsec_sr_no='Sr. No.' * SUB_SECTOR_NAME='Sub-Sector',
Ext_tot_Outlay='Annual' * SUM='Exp';
RUN;
I’d like the headers (Sr. No., Sector, Sr. No., Sub-Sector) to "shift up" in the output
i want
Is there an option in PROC TABULATE to adjust the vertical placement or spacing of row headers? If not, what’s the best alternative (e.g., PROC REPORT) to achieve this customization?
Thank you!
... View more