<div dir="ltr">You are correct. The documentation has been fixed.  THX. D<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 18, 2016 at 5:51 AM, Tess Parker <span dir="ltr">&lt;<a href="mailto:tess.parker@monash.edu" target="_blank">tess.parker@monash.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi - <br><br></div>I am using the documentation page for the escorc Pearson sample correlation function: <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/escorc.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Built-in/escorc.shtml</a><br><br></div>** Under Example 1, two methods for the calculation and confidence limits are given. Under the alternative method, the following is given:<br><p>
An alternative for testing significance is:
</p><pre>        t    = r*log<a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/log.shtml" target="_blank"><strong></strong></a>((n-2)/(1-<b>r</b>^2))      
        p    = student_t(t, df)
        psig = 0.05                       ; test significance level                     
        print(&quot;t=&quot;+t+&quot;  p=&quot;+p)            ; t=2.02755  p=0.0732238
</pre>** However, to calculate t (as stated further up on the page) one uses:<br> <i><br></i>t =<b> </b>r*sqrt[ (<i>n</i>-2)/(1-r^2) ]<br><br></div>It seems then that the formula for t given in the alternative test is wrong, in using the log rather than the sqrt? <br><br></div>Thanks as always for your help.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><br><div><div><div><div><div><br clear="all"><div><div><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>-- <br>Tess Parker<br>Associate Researcher<br>School of Earth, Atmosphere and Environment<br>Room 225, Building 28<br></div><div>9 Rainforest Walk<br></div><div>Monash University, Clayton VIC 3800<br><br></div><a href="http://users.monash.edu.au/~tess/index.html" target="_blank">http://users.monash.edu.au/~tess/index.html</a><br></div></div></div></div></div></div></div>
</div></div></div></div></div></div></div></font></span></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>