<?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 95% Confidence Intervals (Correlation) w/o Fisher Z in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/95-Confidence-Intervals-Correlation-w-o-Fisher-Z/m-p/331755#M62752</link>
    <description>&lt;P&gt;I am trying to determine confidence intervals for a correlation, but without using Fisher's Z as the Ho=0 and Ha(do not) equal 0. &amp;nbsp;So no Fisher Z required. &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Feb 2017 00:51:52 GMT</pubDate>
    <dc:creator>AsthmaticRunner</dc:creator>
    <dc:date>2017-02-11T00:51:52Z</dc:date>
    <item>
      <title>95% Confidence Intervals (Correlation) w/o Fisher Z</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/95-Confidence-Intervals-Correlation-w-o-Fisher-Z/m-p/331755#M62752</link>
      <description>&lt;P&gt;I am trying to determine confidence intervals for a correlation, but without using Fisher's Z as the Ho=0 and Ha(do not) equal 0. &amp;nbsp;So no Fisher Z required. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2017 00:51:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/95-Confidence-Intervals-Correlation-w-o-Fisher-Z/m-p/331755#M62752</guid>
      <dc:creator>AsthmaticRunner</dc:creator>
      <dc:date>2017-02-11T00:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: 95% Confidence Intervals (Correlation) w/o Fisher Z</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/95-Confidence-Intervals-Correlation-w-o-Fisher-Z/m-p/332037#M62762</link>
      <description>&lt;P&gt;Why you wouldn't accept the probability under H0: rho=0 produced by PROC CORR, I have no idea.&amp;nbsp; Even if it uses the z transform, wouldn't it produce the correct probability?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if you must.&amp;nbsp; Using the "testing rho=0" section of &lt;A href="https://www.andrews.edu/~calkins/math/edrm611/edrm09.htm" target="_self"&gt;Estimation and Confidence Intervals&lt;/A&gt; in notes for Introduction to Statistics at Andrews.edu, it looks like you can calculate &lt;I&gt;t&lt;/I&gt;=&lt;I&gt;r&lt;/I&gt;•sqrt((&lt;I&gt;n&lt;/I&gt;-2)/(1-&lt;I&gt;r&lt;/I&gt;&lt;SUP&gt;2&lt;/SUP&gt;)), where &lt;EM&gt;r&lt;/EM&gt; is your sample correlation.&amp;nbsp; You can compare your value ot &lt;EM&gt;t&lt;/EM&gt; against the critical values for &lt;EM&gt;n-2&lt;/EM&gt; degrees of freedom and alpha level of your choice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming you know your N and r in, say, dataset mycorrs, you can do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;BR /&gt;&amp;nbsp; set mycorrs; &lt;BR /&gt;&amp;nbsp; df=n-2;&lt;BR /&gt;&amp;nbsp; alpha=0.05;&lt;BR /&gt;&amp;nbsp; sample_t=r*sqrt(df)/(1-r**2);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; prob_abs_t=probt(abs(sample_t),df);&lt;BR /&gt;&amp;nbsp; prob_abs_r_eq_0=2*(1-prob_abs_t);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; lower_critval=tinv(alpha/2,df);&lt;BR /&gt;&amp;nbsp; upper_critval=-1*lower_critval;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; put 'Sample stats: ' r= n= sample_t=&amp;nbsp; ' Prob &amp;gt;|r| under H0: ' prob_abs_r_eq_0;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; if lower_critval &amp;lt;= sample_t &amp;lt;= upper_critval then put "H0: rho=0 is not rejected at " alpha=;&lt;BR /&gt;&amp;nbsp; else put "H0: rho=0 is rejected at " alpha=;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lots of extra stuff in this program, but it is not clear what precisely you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Added two minutes later: you really might want to put this question in the Analytics section, sub-section IML.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 23:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/95-Confidence-Intervals-Correlation-w-o-Fisher-Z/m-p/332037#M62762</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-02-12T23:57:25Z</dc:date>
    </item>
  </channel>
</rss>

