I was able to successfully reproduce the documentation which creates an inset table inside a survival plot.
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_kaplan_sect030.htm
However, I spent over 1.5 hours trying to figure out how to enlarge the font size. I need it to be in a poster atleast 25 pots.
I tried adding valueattrs, labelattrs, textattrs ,titleattrs, but none of it works.... please help.
Actually, I figured it out.
Here is the modified version of the documentation code:
%macro StmtsBottom;
dynamic %do i = 1 %to 3; StrVal&i NObs&i NEvent&i %end;;
layout gridded / columns=3 border=TRUE autoalign=(TopRight);
entry ""; entry "Event" / textattrs=GraphData&i(size=12pt weight=bold family="Times New Roman"); entry "Total" / textattrs=GraphData&i(size=12pt weight=bold family="Times New Roman");
%do i = 1 %to 3;
%let t = / textattrs=GraphData&i(size=12pt family="Times New Roman");
entry halign=right Strval&i &t; entry NEvent&i &t; entry NObs&i &t;
%end;
endlayout;
%mend;
How do I mark as solved?
Actually, I figured it out.
Here is the modified version of the documentation code:
%macro StmtsBottom;
dynamic %do i = 1 %to 3; StrVal&i NObs&i NEvent&i %end;;
layout gridded / columns=3 border=TRUE autoalign=(TopRight);
entry ""; entry "Event" / textattrs=GraphData&i(size=12pt weight=bold family="Times New Roman"); entry "Total" / textattrs=GraphData&i(size=12pt weight=bold family="Times New Roman");
%do i = 1 %to 3;
%let t = / textattrs=GraphData&i(size=12pt family="Times New Roman");
entry halign=right Strval&i &t; entry NEvent&i &t; entry NObs&i &t;
%end;
endlayout;
%mend;
How do I mark as solved?
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.