I am trying to make correlation matrix plots using 6 variables: height, weight, age, and the ultrasound measures stiffness index, bua, and sos. For some reason, I can't get the plot to include all the variables - it cuts off the last one, "Insightsos". Can you tell me what I can do to get SAS to plot all these variables in the matrix? I'm using SAS 9.4 M4 for Windows 7 64bit.
ods graphics on;
proc corr data=achilles_m nomiss plots=matrix(histogram) plots(maxpoints=none);
var Height Weight1 Age Insightstiff Insightbua Insightsos;
format winbonevisit winbonevisitf.;
ods graphics off;
Possible causes without seeing the data:
The variable is not numeric. check with Proc Contents or anything that displays column/ variable properties.
The variable is missing for all the records where insight=1 for one or more levels of the By variable.
One check would be Proc freq with insight*Insightsos on the tables statement with an identical By statement.
Insufficient space in the graphics area. You can test this by setting width and height options on the ODS Graphics to values such as
ods graphics on / width=10in height=10in;
to use a 10 inch by 10 inch display.
Do you get any tabular output for that variable?
Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.
Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer.
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.