BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello,

i use the code :

proc corr data = review1 plots;
var Score GHz Price Processor Memory Disk Video Battery;
run;

it does give me scattre plot only for Score GHz Price Processor Memory but not other variables included. could anyone suggets me?

kindeest regards,
Mark
4 REPLIES 4
Cynthia_sas
SAS Super FREQ
Hi:
This previous forum posting on the same subject might be useful:
http://support.sas.com/forums/thread.jspa?threadID=7135

The overview on PROC CORR can be found here:
http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#/documentation/cd...

And the syntax for the PROC CORR PLOTS= option can be found here:
http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#/documentation/cd...

cynthia
Ksharp
Super User
I guess your " Disk Video Battery " are category variables .
Or using proc sgscatter
Or ues SAS/insight Model to get the same result. Message was edited by: Ksharp
Cynthia_sas
SAS Super FREQ
Hi:
It explains in the documentation that the default number of variables in a scatter plot matrix is 5 variables. There is an option to use more variables than the default. In addition to the methods you mentioned, the original poster can get the scatter plot matrix he wants out of PROC CORR by looking up the right option in the documentation.

If any of the variables had been category variables, there would have been an error message in the SAS log (as shown below for the NAME variable):
[pre]
3121 var name age;
ERROR: Variable name in list does not match type prescribed for this list.
[/pre]

cynthia
Ksharp
Super User
thx.
I should take a look at documentation first.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 824 views
  • 0 likes
  • 3 in conversation