<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I display PROC CORR results vertically? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-display-PROC-CORR-results-vertically/m-p/297594#M312139</link>
    <description>&lt;PRE&gt;
SURE.





proc corr data=sashelp.class  noprint   outp=pearson outs=spearman outk=kendall;
 var weight height;
 with age;
run;
data temp;
 set pearson spearman kendall indsname=indsname;
 dsn=scan(indsname,-1,'.');
 if _type_='CORR';
run;

proc transpose data=temp out=want;
 id dsn;
 var _numeric_;
run;
proc datasets library=work nolist nodetails;
 save want;
quit;


&lt;/PRE&gt;</description>
    <pubDate>Sun, 11 Sep 2016 12:55:51 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-09-11T12:55:51Z</dc:date>
    <item>
      <title>How can I display PROC CORR results vertically?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-display-PROC-CORR-results-vertically/m-p/297590#M312136</link>
      <description>&lt;P&gt;I am running PROC CORR to determine Pearson, Spearman, and Kendall correlations on 101 variables against a single variable. For example, for age, gender, race, etc. I want to see the correlation to whether the person uses the internet. The procedure is running fine and giving me the data that I want, but because I am comparing against 101 variables, the results are very wide and run off the page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to display the same results vertically, so that I have only three columns (Pearson, Spearman, and Kendall) and 101 rows?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Univeristy Edition, release 3.5&lt;SPAN&gt;, build 3 Feb 2016.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 09:47:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-display-PROC-CORR-results-vertically/m-p/297590#M312136</guid>
      <dc:creator>rossj81zzz</dc:creator>
      <dc:date>2016-09-11T09:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I display PROC CORR results vertically?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-display-PROC-CORR-results-vertically/m-p/297591#M312137</link>
      <description>&lt;PRE&gt;
Put that single variable in WITH statement, other 101 variables in VAR statement.
OR Do you want IML code ?



proc corr data=sashelp.class  noprint   outp=pearson outs=spearman outk=kendall;
 var weight height;
 with age;
run;
data temp;
 set pearson spearman kendall indsname=indsname;
 dsn=scan(indsname,-1,'.');
 if _type_='CORR';
run;

proc transpose data=temp out=want;
 id dsn;
 var _numeric_;
run;


&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Sep 2016 10:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-display-PROC-CORR-results-vertically/m-p/297591#M312137</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-09-11T10:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I display PROC CORR results vertically?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-display-PROC-CORR-results-vertically/m-p/297592#M312138</link>
      <description>&lt;P&gt;Thank you, that works perfectly. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For bonus points, is there a way that I can automatically drop the four temporary tables in the script, so that only the WANT table is left at the end?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 10:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-display-PROC-CORR-results-vertically/m-p/297592#M312138</guid>
      <dc:creator>rossj81zzz</dc:creator>
      <dc:date>2016-09-11T10:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I display PROC CORR results vertically?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-display-PROC-CORR-results-vertically/m-p/297594#M312139</link>
      <description>&lt;PRE&gt;
SURE.





proc corr data=sashelp.class  noprint   outp=pearson outs=spearman outk=kendall;
 var weight height;
 with age;
run;
data temp;
 set pearson spearman kendall indsname=indsname;
 dsn=scan(indsname,-1,'.');
 if _type_='CORR';
run;

proc transpose data=temp out=want;
 id dsn;
 var _numeric_;
run;
proc datasets library=work nolist nodetails;
 save want;
quit;


&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Sep 2016 12:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-display-PROC-CORR-results-vertically/m-p/297594#M312139</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-09-11T12:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I display PROC CORR results vertically?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-display-PROC-CORR-results-vertically/m-p/297608#M312140</link>
      <description>&lt;P&gt;Excellent. Thanks very much for your help.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 15:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-display-PROC-CORR-results-vertically/m-p/297608#M312140</guid>
      <dc:creator>rossj81zzz</dc:creator>
      <dc:date>2016-09-11T15:56:40Z</dc:date>
    </item>
  </channel>
</rss>

