BookmarkSubscribeRSS Feed
Hank
Fluorite | Level 6

Hi,

I have two, probably small, problems with the matrix output in proc corr:

1)

Using Pearson correlation coefficient, does anyone know how I can get the level of significance for my matrix-output using proc corr to appear as asterisks  (*,** and *** for p<0.1,p<0.05 and p<0.01 respectively) on the correlation coefficient value?

2)

How do I get the matrix to show only half the matrix (since they are identical row/col vs. col/row)?

If it is possible, with the diagonal line of 1:s (representing correlation of x1 on x1 = 1 etc) to either show a histogram of that particular variable or

a scatter plot with another variable not in the matrix (I am thinking of the residuals of y).

I have searched online for hours without finding anything. Help is much appreciated!

Best regards,

/H

2 REPLIES 2
Rick_SAS
SAS Super FREQ

Because you want to modify the legend and show only half the matrix, I think you will need to use the GTL to hand-code this layout.  To get started, look at the examples (and macro code) that Sanjay provides in this blog post: Compact Scatter Plot Matrix - Graphically Speaking

Hank
Fluorite | Level 6

Hi,

Thanks for your link to more information, I have looked at it and seems to be a good step in the right direction.

Sorry for the late replay!

Regards,

Hannes

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
  • 2 replies
  • 1427 views
  • 3 likes
  • 2 in conversation