BookmarkSubscribeRSS Feed
COMPAREMISSING
Calcite | Level 5

Hi,
I have the following script and I have to add titles at each graphs following the By variable in proc reg. Thnaks a lot,
Barbara

ods Graphics  on;
ods _all_ close;
ods document name=QQDoc(write);

proc reg data=trend plots=(fitplot(stats=none) ) ;
model ln_meu=immunization_data ;
by antigen dilution;
title;
run; quit;

ods document close;
ods listing;

ODS RTF FILE="C:\Users\pomilba1\Desktop\Sas luca\SASResults\13011\prova.rtf";

proc document name=QQDoc;
   ods select fitplot;
   replay;
run; quit;

ODS rtf close;
ods Graphics off;

1 REPLY 1
ballardw
Super User

What do you want the titles to look like?

General syntax would be something like

options nobyline;

Title "Title text, #byline";

befor the proc reg.

then

options byline; to return default behavior of the by variables.

Do you want the titles as part of the plot or outside? That would be controlled by use of the GTITLE or NOGTITLE as an option on the ODS RTF statement.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 956 views
  • 0 likes
  • 2 in conversation