RAVE
Lib.gadjust.ttest Namespace Reference

Functions

 ttest (r, n)
 Student's T-test of correlation coefficient.
 
 ttest_means (m1, m2, d1, d2, n1, n2, ci=0.05, tailed=2)
 Student's T-test of means.
 

Variables

dict t95
 
 m1
 
 m2
 
 d1
 
 d2
 
 n1
 
 n2
 
 sig = ttest_means(m1, m2, d1, d2, n1, n2)
 

Detailed Description

Copyright (C) 2013- Swedish Meteorological and Hydrological Institute (SMHI)

This file is part of RAVE.

RAVE is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

RAVE is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with RAVE.  If not, see <http://www.gnu.org/licenses/>.

Function Documentation

◆ ttest()

Lib.gadjust.ttest.ttest ( r,
n )

Student's T-test of correlation coefficient.

Parameters
rfloat correlation coefficient
nint sample size (number of points)
Returns
string 'T' if the correlation is accepted, else 'F'.

◆ ttest_means()

Lib.gadjust.ttest.ttest_means ( m1,
m2,
d1,
d2,
n1,
n2,
ci = 0.05,
tailed = 2 )

Student's T-test of means.

Parameters
m1float first mean
m2float second mean
d1first deviation
d2second deviation
n1first sample size
n2second sample size
cifloat confidence interval, 95% = 0.05
tailedint 1 or 2-tailed test
Returns
string 'T' if the difference is accepted, else 'F'.