<?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: No values in correlation matrix in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/No-values-in-correlation-matrix/m-p/282184#M59164</link>
    <description>&lt;P&gt;This would happen if your FF variable is constant. The formula for the Pearson correlation has a denominator that contains the variance of the two variables. A constant variable has variance=0, which makes the correlation coefficient undefined. For example:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
set sashelp.class;
c = 1;    /* constant value */
run;

proc corr data=a;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2016 15:49:46 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-07-05T15:49:46Z</dc:date>
    <item>
      <title>No values in correlation matrix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/No-values-in-correlation-matrix/m-p/282156#M59160</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a correlation matrix via PROC CORR and found that the variable FF, which is dummy variable, has no values with 3 other variables (which are continous variables). I attached here the result as I got&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clue why this is happened?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="Correlation.png" alt="Correlation.png" src="https://communities.sas.com/t5/image/serverpage/image-id/3913i1B510726ADD19BB1/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 14:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/No-values-in-correlation-matrix/m-p/282156#M59160</guid>
      <dc:creator>yael</dc:creator>
      <dc:date>2016-07-05T14:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: No values in correlation matrix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/No-values-in-correlation-matrix/m-p/282184#M59164</link>
      <description>&lt;P&gt;This would happen if your FF variable is constant. The formula for the Pearson correlation has a denominator that contains the variance of the two variables. A constant variable has variance=0, which makes the correlation coefficient undefined. For example:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
set sashelp.class;
c = 1;    /* constant value */
run;

proc corr data=a;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 15:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/No-values-in-correlation-matrix/m-p/282184#M59164</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-07-05T15:49:46Z</dc:date>
    </item>
  </channel>
</rss>

