BookmarkSubscribeRSS Feed
TimurShangareev
Calcite | Level 5

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?

TimurShangareev_1-1756736728308.png

 

4 REPLIES 4
FreelanceReinh
Jade | Level 19

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.

 

TimurShangareev
Calcite | Level 5

Can I set or customize proctitle for PROC SGRENDER/SGPLOT with this macro?

FreelanceReinh
Jade | Level 19

@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.

Ksharp
Super User

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;

Ksharp_0-1756966554871.png

 

 

 

 

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;

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 167 views
  • 3 likes
  • 3 in conversation