BookmarkSubscribeRSS Feed
H
Pyrite | Level 9 H
Pyrite | Level 9

I have run a proc glm model (Outcome = continuous with two continous predictors). With the Ods Graphics and Plots active it provided the below contour plot. I love components of this plot for explaining the project.

 

However, my final model has 3 continuous predictors, so SAS does not generate the plot. I would like to reproduce the plot without the color contouring and I would like the dots to be color coded based on the quartiles of the third predictor. Which this seems achievable, but i have no idea how to put on the diagonal lines that represent the dependent variable into a graph.

 

So dataset would contain

 

Y: continous variable

X1: continuous variable

X2: continuous variable

X3: continuous variable, categorized into quartile and used to shade observations on the plot.

 

 

4 REPLIES 4
H
Pyrite | Level 9 H
Pyrite | Level 9

Original Plot

 


SAS Comm Pic.jpg
Rick_SAS
SAS Super FREQ

What version of SAS are you running?

H
Pyrite | Level 9 H
Pyrite | Level 9

9.4

 

Probably original release.

H
Pyrite | Level 9 H
Pyrite | Level 9
ods graphics on  ;
proc glm data=dka_please 	PLOTS=all;
	model HOURS_PH_NORM = 
		total_fluid 
		INTITIAL_PH;
run;
ods graphics off;

 Code is above for 2 IV model. In the final graph I would like to use labels to get rid of "_" and add units to variable names.

 

Side note, your Sim book was great Rick.

 

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
  • 4 replies
  • 1093 views
  • 0 likes
  • 2 in conversation