[ncl-talk] Query on escorc function page

Tess Parker tess.parker at monash.edu
Mon Jul 18 05:51:30 MDT 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160718/0e65fd9b/attachment.html 


More information about the ncl-talk mailing list