<?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, SAS Calculation Mystery in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-CORR-SAS-Calculation-Mystery/m-p/41387#M1767</link>
    <description>This shouldn't happen.  Seems like something to take to tech support.&lt;BR /&gt;
&lt;BR /&gt;
If your data set is really large, you could be running into memory problems in the first example.  However, I would expect a message in the log if that happened.&lt;BR /&gt;
&lt;BR /&gt;
If you can reproduce the problem with some of the sample datasets that are provided with the SAS install, that will speed up the tech support resolution.</description>
    <pubDate>Fri, 15 Jan 2010 16:07:37 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2010-01-15T16:07:37Z</dc:date>
    <item>
      <title>Proc CORR, SAS Calculation Mystery</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-CORR-SAS-Calculation-Mystery/m-p/41386#M1766</link>
      <description>I have a question using Proc CORR. I used the following codes (the following is just an example) to find the Spearman correlations between variables:&lt;BR /&gt;
&lt;BR /&gt;
Proc CORR data=use Spearman;&lt;BR /&gt;
	Var A B C D E ... L /*12 variables in total*/;&lt;BR /&gt;
	With F G H;&lt;BR /&gt;
Run;&lt;BR /&gt;
&lt;BR /&gt;
However, the result I got for correlations between A and F, or G, or H are slightly different from what I got if I use only:&lt;BR /&gt;
&lt;BR /&gt;
Proc CORR data=use Spearman;&lt;BR /&gt;
	Var A;&lt;BR /&gt;
	With F G H;&lt;BR /&gt;
Run;&lt;BR /&gt;
&lt;BR /&gt;
From the SAS manual, I couldn’t tell why as the calculation formula would be the same for these correlations in both cases. Could anyone please shed some light?&lt;BR /&gt;
&lt;BR /&gt;
Thank you!</description>
      <pubDate>Fri, 15 Jan 2010 15:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-CORR-SAS-Calculation-Mystery/m-p/41386#M1766</guid>
      <dc:creator>tigfem</dc:creator>
      <dc:date>2010-01-15T15:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc CORR, SAS Calculation Mystery</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-CORR-SAS-Calculation-Mystery/m-p/41387#M1767</link>
      <description>This shouldn't happen.  Seems like something to take to tech support.&lt;BR /&gt;
&lt;BR /&gt;
If your data set is really large, you could be running into memory problems in the first example.  However, I would expect a message in the log if that happened.&lt;BR /&gt;
&lt;BR /&gt;
If you can reproduce the problem with some of the sample datasets that are provided with the SAS install, that will speed up the tech support resolution.</description>
      <pubDate>Fri, 15 Jan 2010 16:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-CORR-SAS-Calculation-Mystery/m-p/41387#M1767</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-01-15T16:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc CORR, SAS Calculation Mystery</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-CORR-SAS-Calculation-Mystery/m-p/41388#M1768</link>
      <description>Hi Doc,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the reply. I did work with large datasets. I didn't notice warning of memory in the log though - which might very well be the case. I will try smaller datasets and ask again if this problem persists.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.</description>
      <pubDate>Fri, 15 Jan 2010 20:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-CORR-SAS-Calculation-Mystery/m-p/41388#M1768</guid>
      <dc:creator>tigfem</dc:creator>
      <dc:date>2010-01-15T20:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc CORR, SAS Calculation Mystery</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-CORR-SAS-Calculation-Mystery/m-p/41389#M1769</link>
      <description>Doc is right if the code which was submitted is as shown in the initial post.  However, if the NOMISS option was specified on either or both invocations of PROC CORR, then if there are any observations with missing values on {B,C,D,E,I,J,K,L} that do not have missing values in the set {A,F,G,H}, you would expect different results.  So, the OP should confirm that (s)he did not include the NOMISS option in any of the invocations of PROC CORR.&lt;BR /&gt;
&lt;BR /&gt;
If the NOMISS option was not employed, then the results are not expected and the problem should be reported to SAS tech support.</description>
      <pubDate>Fri, 15 Jan 2010 20:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-CORR-SAS-Calculation-Mystery/m-p/41389#M1769</guid>
      <dc:creator>Dale</dc:creator>
      <dc:date>2010-01-15T20:46:23Z</dc:date>
    </item>
  </channel>
</rss>

