turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS/GRAPH and ODS Graphics
- /
- Regression equation in ODS graphics

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

10-14-2009 02:03 PM

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.

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to WendyT

10-14-2009 02:13 PM

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

http://support.sas.com/rnd/app/examples/ets/gplot/index.html

http://support.sas.com/rnd/app/examples/ets/gplot/index.html

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to WendyT

10-14-2009 03:37 PM

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

Thanks!

Dan

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to WendyT

10-15-2009 01:32 PM

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.

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

Wendy T.