BookmarkSubscribeRSS Feed
WendyT
Pyrite | Level 9
Good morning - I'm working on some regressions and am having some trouble getting the graphics to come out nicely.

When using the PLOT statement, the model shows on the graphic by default, but the default graphic leaves a lot to be desired.

The ODS graphics are quite nice, but I have so far been unable to discover a way to show the regression model on the fitplot, or find another plot with the values, regression line, and confidence and prediction intervals.

Could someone please help me or point me to an example? I have so far been unable to find one.

Thanks so much for your help!

Wendy T.
3 REPLIES 3
GraphGuy
Meteorite | Level 14
This ETS example might have some pieces & parts you can use:

http://support.sas.com/rnd/app/examples/ets/gplot/index.html
DanH_sas
SAS Super FREQ
Unfortunately, neither PROG REG nor SGPLOT have the facility to automatically display the regression equation using ODS Graphics. One possibility may be to determine the equation from the PROC REG output and add the equation to the ODS Graphics plot from PROC REG using the ODS Graphics Editor as a post-process.

Thanks!
Dan
WendyT
Pyrite | Level 9
It's strange that model is not an available option.

Thanks so much for the help - I'm going to have to do the graphics the hard way.

Wendy T.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 3 replies
  • 1314 views
  • 0 likes
  • 3 in conversation