[ncl-talk] Query on escorc function page
Dennis Shea
shea at ucar.edu
Mon Jul 18 06:44:03 MDT 2016
You are correct. The documentation has been fixed. THX. D
On Mon, Jul 18, 2016 at 5:51 AM, Tess Parker <tess.parker at monash.edu> wrote:
> Hi -
>
> I am using the documentation page for the escorc Pearson sample
> correlation function:
> http://www.ncl.ucar.edu/Document/Functions/Built-in/escorc.shtml
>
> ** Under Example 1, two methods for the calculation and confidence limits
> are given. Under the alternative method, the following is given:
>
> An alternative for testing significance is:
>
> t = r*log <http://www.ncl.ucar.edu/Document/Functions/Built-in/log.shtml>((n-2)/(1-*r*^2))
> p = student_t(t, df)
> psig = 0.05 ; test significance level
> print("t="+t+" p="+p) ; t=2.02755 p=0.0732238
>
> ** However, to calculate t (as stated further up on the page) one uses:
>
> t = r*sqrt[ (*n*-2)/(1-r^2) ]
>
> It seems then that the formula for t given in the alternative test is
> wrong, in using the log rather than the sqrt?
>
> Thanks as always for your help.
>
>
> --
> Tess Parker
> Associate Researcher
> School of Earth, Atmosphere and Environment
> Room 225, Building 28
> 9 Rainforest Walk
> Monash University, Clayton VIC 3800
>
> http://users.monash.edu.au/~tess/index.html
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160718/9ccae306/attachment.html
More information about the ncl-talk
mailing list