Data visualization with SAS programming

Regression equation in ODS graphics

Reply
Frequent Contributor
Posts: 91

Regression equation in ODS graphics

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.
SAS Employee
Posts: 967

Re: Regression equation in ODS graphics

This ETS example might have some pieces & parts you can use:

http://support.sas.com/rnd/app/examples/ets/gplot/index.html
SAS Super FREQ
Posts: 889

Re: Regression equation in ODS graphics

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
Frequent Contributor
Posts: 91

Re: Regression equation in ODS graphics

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.
Ask a Question
Discussion stats
  • 3 replies
  • 135 views
  • 0 likes
  • 3 in conversation