I am trying to include superscripts in individual panel labels using sgpanel. I have created the labels using proc format and the value statement, but I am having issues when I actually try to insert superscripts (of 1, 2, 3, etc). After doing some research, it seems that it should be possible to insert superscripts into proc format value statements using (*ESC*) and the unicode value, but when I do this in SAS 9.4 it just prints everything out in the string. An example of the code I'm using is below. I've never called unicode values before so am not feeling confident about that either, but right now I just want it to not print the entire thing in a string. I have additional labels but cut it down here to be concise. I then call the panel_var format in sgpanel. proc format; value panel_var 0='BSI(*ESC*){unicode "207A"x}(*ESC*){unicode "2071"x}' 1="Externalizing Problems"; run; ods graphics on/ border=off width=11in height=8in; ods rtf file="C:\filepath\filename.rtf" style=journal2; proc sgpanel data=adj noautolegend; panelby panel_var / columns=3 rows=4 uniscale=column novarname; refline 0/axis=y; scatter x=visit y=beta/yerrorupper=upper yerrorlower=lower; format visit visit. panel_var panel_var.; colaxis min=0.8 max=7.2 values=(1,2,3,4,5,6,7) valueshint; rowaxis integer; run; ods rtf close;
... View more