<?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: Proc Corr,  Keeping only Correlations. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Corr-Keeping-only-Correlations/m-p/646889#M193555</link>
    <description>&lt;P&gt;NoPrint suppress the displayed output so I'm assuming you're referring to the OUTP table? You can add a filter to the output data set directly in the proc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc corr data=Table1 outp = Table2 (WHERE = (INSERT FILTER CONDITION)) noprint;
var Item1;
with Item2;
by Item3;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319809"&gt;@mcook&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way to keep only the corr result?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc corr data=Table1 outp = Table2 noprint;&lt;BR /&gt;var Item1;&lt;BR /&gt;with Item2;&lt;BR /&gt;by Item3;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This gives an output of&amp;nbsp; the mean, std, N, and Corr.&amp;nbsp; Is there a way to eliminate all but the Corr result inside the proc corr step itself?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been having to do a proc sql step to select only the corr result.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2020 21:20:03 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-05-11T21:20:03Z</dc:date>
    <item>
      <title>Proc Corr,  Keeping only Correlations.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Corr-Keeping-only-Correlations/m-p/646888#M193554</link>
      <description>&lt;P&gt;Is there a way to keep only the corr result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc corr data=Table1 outp = Table2 noprint;&lt;BR /&gt;var Item1;&lt;BR /&gt;with Item2;&lt;BR /&gt;by Item3;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gives an output of&amp;nbsp; the mean, std, N, and Corr.&amp;nbsp; Is there a way to eliminate all but the Corr result inside the proc corr step itself?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been having to do a proc sql step to select only the corr result.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 21:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Corr-Keeping-only-Correlations/m-p/646888#M193554</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2020-05-11T21:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Corr,  Keeping only Correlations.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Corr-Keeping-only-Correlations/m-p/646889#M193555</link>
      <description>&lt;P&gt;NoPrint suppress the displayed output so I'm assuming you're referring to the OUTP table? You can add a filter to the output data set directly in the proc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc corr data=Table1 outp = Table2 (WHERE = (INSERT FILTER CONDITION)) noprint;
var Item1;
with Item2;
by Item3;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319809"&gt;@mcook&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way to keep only the corr result?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc corr data=Table1 outp = Table2 noprint;&lt;BR /&gt;var Item1;&lt;BR /&gt;with Item2;&lt;BR /&gt;by Item3;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This gives an output of&amp;nbsp; the mean, std, N, and Corr.&amp;nbsp; Is there a way to eliminate all but the Corr result inside the proc corr step itself?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been having to do a proc sql step to select only the corr result.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 21:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Corr-Keeping-only-Correlations/m-p/646889#M193555</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-05-11T21:20:03Z</dc:date>
    </item>
  </channel>
</rss>

