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
Diamond | Level 26
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
Diamond | Level 26
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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1275 views
  • 0 likes
  • 3 in conversation