Learning SAS? Welcome to the exclusive online community for all SAS learners.

ERROR: Procedure GPLOT not found

Accepted Solution Solved
Reply
Regular Contributor
Posts: 199
Accepted Solution

ERROR: Procedure GPLOT not found

I am receiving this error using SAS University Edition. Is this PROC not available in SAS UE?

 

Thanks.

 

	proc gplot data=check;
	plot resid*pred / haxis=axis1 vaxis=axis2 vref=0; 
	axis1 w=2 major=(w=2) minor=none offset=(10pct); axis2 w=2 major=(w=2) minor=none;
	title ’plot residuals vs predictors’;
	run; quit;

Accepted Solutions
Solution
‎05-10-2016 05:33 PM
Super User
Posts: 11,343

Re: ERROR: Procedure GPLOT not found

The older device oriented graphics procedures like Gplot, Gchart and such are not available with UE. The good news is that SGPLOT, SGPanel and the Graphics Template Language can do some things much easier than were possible with the older procedures.

 

Axis controls are significantly different but

 

proc sgplot data=check;

   scatter x=pred y=resid;

run;

 

should get you started. There are lots of examples using the procedures at

http://support.sas.com/sassamples/graphgallery/index.html

View solution in original post


All Replies
Solution
‎05-10-2016 05:33 PM
Super User
Posts: 11,343

Re: ERROR: Procedure GPLOT not found

The older device oriented graphics procedures like Gplot, Gchart and such are not available with UE. The good news is that SGPLOT, SGPanel and the Graphics Template Language can do some things much easier than were possible with the older procedures.

 

Axis controls are significantly different but

 

proc sgplot data=check;

   scatter x=pred y=resid;

run;

 

should get you started. There are lots of examples using the procedures at

http://support.sas.com/sassamples/graphgallery/index.html

Regular Contributor
Posts: 199

Re: ERROR: Procedure GPLOT not found

@ballardw Thanks. There are some great examples of charts on that page!

 

Any idea why my residuals are stacked in columns in this plot (See attachment)?

 

	proc sgplot data=check;
   	scatter x=pred y=resid;
	refline 0 / axis=y;
	run;

residuals v predicted.jpg
Super User
Posts: 19,878

Re: ERROR: Procedure GPLOT not found

Your predicted variables are grouped in specific classes - so it's likely you have a categorical variable that's being used in the model?

Most likely only a categorical variable?

Regular Contributor
Posts: 199

Re: ERROR: Procedure GPLOT not found

@Reeza There is a categorical variable in the CLASS statement in in the MODEL statement (Condition = Treatment or Control). The only other variable in the model is time, which ranges from 1-5, and is NOT in the CLASS statement. My understanding is that it will be treated as continuous as long as it is not in the CLASS statement. I am running the model both ways (i.e. Time as continuous and categorical). 

 

CLASS condition;

MODEL score = condition timepoint;

Super User
Posts: 19,878

Re: ERROR: Procedure GPLOT not found

[ Edited ]

It doesn't matter if it's continuous or categorical if it's 1-5...You're getting grouped values because you have essentially categorical data. 

 

Say your class variable condition has 2 values and timepoint has 5 then you'll only ever have 10 estimates, which is what is happening here. 

 

At any rate, you asked why your data is grouped and that's why - the categorical nature of your variables. 

Community Manager
Posts: 587

Re: ERROR: Procedure GPLOT not found

That's right. Use sgplot instead.
-
Bev Brown
Visit me on LinkedIn.
Twitter too: @BevBrown
Thank you for using SAS.jpg
Community Manager
Posts: 587

Re: ERROR: Procedure GPLOT not found

For thorough answers, you can always bank on our Super Users! Thanks, @ballardw and @Reeza.

-
Bev Brown
Visit me on LinkedIn.
Twitter too: @BevBrown
Thank you for using SAS.jpg
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 7 replies
  • 1906 views
  • 4 likes
  • 4 in conversation