BookmarkSubscribeRSS Feed
SASbeginner20
Calcite | Level 5

I would like to export my scatterplot generated by SAS into excel. I have read through previous threads and I am still lost on how to do this.

proc gplot data=scatterplot;

plot F*V =S;

run;

My data is grouped data, similar to this: SAS/GRAPH(R) 9.2: Statistical Graphics Procedures Guide, Second Edition

Is there a way to add a line of best fit for each group, one line for Male, and line for Female?

Thanks so much!

2 REPLIES 2
stat_sas
Ammonite | Level 13

Hi,

I've used sgplot to do this, may be helpful for the desired results.

proc sgplot data=scatterplot;

  reg x=F y=V /LINEATTRS=solid group=s;

run;

jakarman
Barite | Level 11

would use the SG proceduers see:  ODS Statistical Graphics.   What has happened is a silent move of functionality.
"In SAS 9.2, SAS/GRAPH software is required for ODS Graphics functionality. With SAS 9.3, all ODS Graphics capabilities moved to Base SAS."

---->-- ja karman --<-----

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1314 views
  • 1 like
  • 3 in conversation