SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 65202: Add the regression equation and descriptive statistics to a linear regression model with PROC SGPLOT

DetailsCodeResultsAboutRate It

This sample uses the REG procedure to obtain the parameter estimates and the descriptive statistics for a simple linear regression model. The SGPLOT procedure is used to display the regression equation and descriptive statistics. The INSET statements display the regression equation and descriptive statistics on the graph. Modify the POSITION= option in the INSET statement in order to display the regression and descriptive statistics in different locations on the graph. You must have SAS/STAT® software in order to run PROC REG.

To access the sample program, click the Full Code tab.




These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.