Help using Base SAS procedures

Proc Corr

Reply
N/A
Posts: 0

Proc Corr

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
SAS Super FREQ
Posts: 8,864

Re: Proc Corr

Posted in reply to deleted_user
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
Super User
Posts: 10,023

Re: Proc Corr

Posted in reply to deleted_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
SAS Super FREQ
Posts: 8,864

Re: Proc Corr

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
Super User
Posts: 10,023

Re: Proc Corr

Posted in reply to Cynthia_sas
thx.
I should take a look at documentation first.
Ask a Question
Discussion stats
  • 4 replies
  • 146 views
  • 0 likes
  • 3 in conversation