T-test using R¶
-
sage.stats.r.
ttest
(x, y, conf_level=0.95, **kw)¶ T-Test using R
Arguments:
x, y – vectors of same length
conf_level – confidence level of the interval, [0,1) in percent
Result:
Tuple: (p-value, R return object)
Example:
sage: a, b = ttest([1,2,3,4,5],[1,2,3,3.5,5.121]); a # abs tol 1e-12 0.9410263720274274