<?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: Set non-significant correlation to zero when output to dataset? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Set-non-significant-correlation-to-zero-when-output-to-dataset/m-p/65331#M3102</link>
    <description>Hi.&lt;BR /&gt;
Maybe you need 'ods output' to write the result into a dataset.then use data step to set zero.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods trace on;&lt;BR /&gt;
ods output pearsoncorr=corr;&lt;BR /&gt;
proc corr data=sashelp.class;&lt;BR /&gt;
 var weight height;&lt;BR /&gt;
run;&lt;BR /&gt;
ods output close;&lt;BR /&gt;
ods trace off;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
    <pubDate>Mon, 24 Jan 2011 04:46:46 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2011-01-24T04:46:46Z</dc:date>
    <item>
      <title>Set non-significant correlation to zero when output to dataset?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Set-non-significant-correlation-to-zero-when-output-to-dataset/m-p/65330#M3101</link>
      <description>Hi guys,&lt;BR /&gt;
&lt;BR /&gt;
Use proc corr we can produce correlation matrix, but some pairwise correlations are not significant. Is there any way to set non-significant correlations to 0 in the matrix?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,</description>
      <pubDate>Sun, 23 Jan 2011 20:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Set-non-significant-correlation-to-zero-when-output-to-dataset/m-p/65330#M3101</guid>
      <dc:creator>waana</dc:creator>
      <dc:date>2011-01-23T20:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set non-significant correlation to zero when output to dataset?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Set-non-significant-correlation-to-zero-when-output-to-dataset/m-p/65331#M3102</link>
      <description>Hi.&lt;BR /&gt;
Maybe you need 'ods output' to write the result into a dataset.then use data step to set zero.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods trace on;&lt;BR /&gt;
ods output pearsoncorr=corr;&lt;BR /&gt;
proc corr data=sashelp.class;&lt;BR /&gt;
 var weight height;&lt;BR /&gt;
run;&lt;BR /&gt;
ods output close;&lt;BR /&gt;
ods trace off;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Mon, 24 Jan 2011 04:46:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Set-non-significant-correlation-to-zero-when-output-to-dataset/m-p/65331#M3102</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-01-24T04:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set non-significant correlation to zero when output to dataset?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Set-non-significant-correlation-to-zero-when-output-to-dataset/m-p/65332#M3103</link>
      <description>&amp;gt; Hi guys,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Use proc corr we can produce correlation matrix, but&lt;BR /&gt;
&amp;gt; some pairwise correlations are not significant. Is&lt;BR /&gt;
&amp;gt; there any way to set non-significant correlations to&lt;BR /&gt;
&amp;gt; 0 in the matrix?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Why would you wish to do this?  Perhaps there is a good reason, but I cannot think of one.  If a correlation is not significant, it does NOT mean it is 0. Creating a matrix where nonsignificant correlations are reported as 0 is .... well, it's distorting your data.  It seems to be to be equivalent to any other method of changing results.  Not good.&lt;BR /&gt;
&lt;BR /&gt;
Peter</description>
      <pubDate>Fri, 28 Jan 2011 13:10:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Set-non-significant-correlation-to-zero-when-output-to-dataset/m-p/65332#M3103</guid>
      <dc:creator>plf515</dc:creator>
      <dc:date>2011-01-28T13:10:25Z</dc:date>
    </item>
  </channel>
</rss>

