Data visualization with SAS programming

scatter plot with regression line and coefficient and pvalue using macro or proc template

Reply
Frequent Contributor
Posts: 76

scatter plot with regression line and coefficient and pvalue using macro or proc template

Hi All,

 

is that possible to run out a scatter plot within multiple groups, also with regression line, coefficient and pvalue in one figure? I want use macro or dynamic proc template since I have lots of variables. I searched a lot, but didn't get a good example. Anyone can provide me some idea or example??

 

Thanks so much.

C

Valued Guide
Posts: 632

Re: scatter plot with regression line and coefficient and pvalue using macro or proc template

[ Edited ]

yes it is possible. If you would like to see lots of examples with sample code check out Robert Allisons work at http://robslink.com/SAS/#!

 

PROC REG also has quite a few

Proc reg data=sashelp.class;
model height=weight;
run;

plotting capabilities.  there is even a PLOT statement.

Ask a Question
Discussion stats
  • 1 reply
  • 137 views
  • 0 likes
  • 2 in conversation