I used proc mixed to produce Studentized Residuals with model CHG =... CHG variable has label Change. But in output png file inner title (which placed in position, where usually template's entrytitle statement applied). So how I can change this entrytitle to Studentized Residuals for Change from Baseline?
Hello @TimurShangareev,
Following Example 25.8 Changing Titles by Using the %GrTitle Macro from the SAS documentation I accomplished the change by inserting these two statements before the PROC MIXED step:
%grtitle(path=Stat.Mixed.Graphics.ResidualPanel) %let Mixed_ResidualPanel = Studentized Residuals for Change from Baseline;
By deleting the above macro variable using
%symdel Mixed_ResidualPanel;
you can revert to the default title.
Can I set or customize proctitle for PROC SGRENDER/SGPLOT with this macro?
@TimurShangareev wrote:
Can I set or customize proctitle for PROC SGRENDER/SGPLOT with this macro?
I don't think so. Use Ksharp's suggestions for that purpose.
1)Try this:
CODE EDITED(try to make only one bookmarker).
ods document name=testAW(write);
proc sgplot data=sashelp.class;
scatter x=weight y=height/group=sex datalabel=name;
run;
ods document close;
proc document name=testAW;
list/ levels=all; run;
quit;
proc document name=testAW2(write);
setlabel \work.testAW\SGPlot#1\SGPlot#1 "Can I set or customize proctitle for PROC SGRENDER/SGPLOT";
copy \work.testAW\SGPlot#1\SGPlot#1 to ^;
run;
list/ levels=all; run;
quit;
title;
proc document name=work.testAW2;
ods pdf file="c:\temp\twolevels.pdf" startpage=no ; * Save this graphic into a PDF file named twolevels.pdf;
replay ;
run;
ods pdf close;
quit;
2)Or try this:
ods pdf file='c:\temp\temp.pdf'; ods proclabel='Can I set or customize proctitle for PROC SGRENDER/SGPLOT '; proc sgplot data=sashelp.class; scatter x=weight y=height/group=sex datalabel=name; run; ods pdf close;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.