<?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 I am doing a Proc Corr But I only it to output correlation with with correlations higher than 0.7 in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/I-am-doing-a-Proc-Corr-But-I-only-it-to-output-correlation-with/m-p/610560#M8478</link>
    <description>&lt;P&gt;I am doing a Proc Corr on a data set But I only want to output the correlations of variables that have absolute correlations higher than 0.7.&lt;/P&gt;&lt;P&gt;I am using SAS Studio this is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods noproctitle;&lt;BR /&gt;ods graphics / imagemap=on;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc corr data=_TEMP0.BODYFAT2 pearson nosimple noprob rank outp=work.Corr_stats12;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var Age Weight Height Neck Chest Abdomen Hip Thigh Knee Ankle Biceps Forearm Wrist;&lt;BR /&gt;with Age Weight Height Neck Chest Abdomen Hip Thigh Knee Ankle Biceps Forearm Wrist;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using the best and rank statement but they aren't really helping me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 21:36:16 GMT</pubDate>
    <dc:creator>Avdol</dc:creator>
    <dc:date>2019-12-09T21:36:16Z</dc:date>
    <item>
      <title>I am doing a Proc Corr But I only it to output correlation with with correlations higher than 0.7</title>
      <link>https://communities.sas.com/t5/SAS-Studio/I-am-doing-a-Proc-Corr-But-I-only-it-to-output-correlation-with/m-p/610560#M8478</link>
      <description>&lt;P&gt;I am doing a Proc Corr on a data set But I only want to output the correlations of variables that have absolute correlations higher than 0.7.&lt;/P&gt;&lt;P&gt;I am using SAS Studio this is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods noproctitle;&lt;BR /&gt;ods graphics / imagemap=on;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc corr data=_TEMP0.BODYFAT2 pearson nosimple noprob rank outp=work.Corr_stats12;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var Age Weight Height Neck Chest Abdomen Hip Thigh Knee Ankle Biceps Forearm Wrist;&lt;BR /&gt;with Age Weight Height Neck Chest Abdomen Hip Thigh Knee Ankle Biceps Forearm Wrist;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using the best and rank statement but they aren't really helping me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 21:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/I-am-doing-a-Proc-Corr-But-I-only-it-to-output-correlation-with/m-p/610560#M8478</guid>
      <dc:creator>Avdol</dc:creator>
      <dc:date>2019-12-09T21:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: I am doing a Proc Corr But I only it to output correlation with with correlations higher than 0.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/I-am-doing-a-Proc-Corr-But-I-only-it-to-output-correlation-with/m-p/610564#M8479</link>
      <description>&lt;P&gt;You could use the BEST= option to get a data set with the top correlations, and then delete any correlations that are &amp;lt;0.7&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 21:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/I-am-doing-a-Proc-Corr-But-I-only-it-to-output-correlation-with/m-p/610564#M8479</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-12-09T21:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: I am doing a Proc Corr But I only it to output correlation with with correlations higher than 0.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/I-am-doing-a-Proc-Corr-But-I-only-it-to-output-correlation-with/m-p/610570#M8480</link>
      <description>&lt;P&gt;I have tried using the rank function but how do I delete the correlations?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 22:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/I-am-doing-a-Proc-Corr-But-I-only-it-to-output-correlation-with/m-p/610570#M8480</guid>
      <dc:creator>Avdol</dc:creator>
      <dc:date>2019-12-09T22:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: I am doing a Proc Corr But I only it to output correlation with with correlations higher than 0.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/I-am-doing-a-Proc-Corr-But-I-only-it-to-output-correlation-with/m-p/610574#M8482</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/302964" target="_blank" rel="noopener"&gt;@Avdol&lt;/A&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your primary focus is on the printed output (as this is what the options BEST= and RANK only address), you can define and use a numeric format to suppress any low correlation coefficients:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value corr07f
-0.7-0.7 = ' '
other    = [8.5];
run;

ods select none;
ods output pearsoncorr=pc;
proc corr data=_TEMP0.BODYFAT2 noprob;
var Age Weight Height Neck Chest Abdomen Hip Thigh Knee Ankle Biceps Forearm Wrist;
run;
ods select all;

proc print data=pc noobs;
format _numeric_ corr07f.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Maybe you would like to suppress the trivial "1.00000" values on the main diagonal of the correlation matrix as well (provided that you can rule out [almost] perfect correlations elsewhere!). Then just include 1 in the range specification of&amp;nbsp;the format definition:&lt;/P&gt;
&lt;PRE&gt;-0.7-0.7&lt;STRONG&gt;, 1&lt;/STRONG&gt; = ' '&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Edit: simplified format definition.)&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 22:34:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/I-am-doing-a-Proc-Corr-But-I-only-it-to-output-correlation-with/m-p/610574#M8482</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-12-09T22:34:56Z</dc:date>
    </item>
  </channel>
</rss>

