proc corr nomiss spearman data=WORK.smuck_6MWT PLOTS=MATRIX; var PF VT MH SF BP GH; with KOOS_PainN; nwith=all; run; quit;
I got this error message
ERROR 180-322: Statement is not valid or it is used out of proper order
where is the correct place to put nwith=all
You can use options NVAR=ALL | n and NWITH=ALL | n in the plots=matrix(<options>) request to override the maximum of 5 variables per panel.
nwith= is part of the plotting options:
proc corr ..... plots=matrix(nwith=all);
proc corr nomiss spearman data=WORK.smuck_6MWT PLOTS=MATRIX;
var PF VT MH SF BP GH;
with KOOS_Pain; run; quit;
how do i modify this code to display the matrix plot for more than 5 variables. there is no matrix plot with the above code for var (GH)
The default maximum number of plots is 5. You want to add the nvar option. i.e.:
proc corr nomiss spearman data=WORK.smuck_6MWT PLOTS=MATRIX (NVAR=all); var PF VT MH SF BP GH; with KOOS_Pain; run; quit;
Art, CEO, AnalystFinder.com
You can use options NVAR=ALL | n and NWITH=ALL | n in the plots=matrix(<options>) request to override the maximum of 5 variables per panel.
My apologies, I accidentally merged these two posts because the topic was the same and the code, from a quick scan, looked the same.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.