SGPLOT - REG Graph

Q

How to generate REG graphs with SAS SGPLOT procedure?

✍: FYIcenter.com

A

If you have a set of X-Y data pairs, you can present the data with a REG graph, which displays locations of data pairs, and its straight regression line.

The following SAS program shows a REG graph on the example data set, sashelp.class, provided in the SAS University Edition:

proc sgplot data=sashelp.class;
  reg x=height y=weight;

The result looks like the following:

SGPLOT Procedure - REG (Regression) Graph
SGPLOT Procedure - REG (Regression) Graph

 

SGPLOT - BUBBLE Graph

SGPLOT - SCATTER with ELLIPSE Graph

SAS SGPLOT Procedure

⇑⇑ SAS - Frequently Asked Questions

2021-08-21, 2056🔥, 0💬