Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
stats.r: rst fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mezzarobba committed Apr 11, 2015
1 parent 1df5afb commit 6858c7f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/sage/stats/r.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"T-test using R"

##########################################################################
#
# Copyright (C) 2007 William Stein <wstein@gmail.com>
Expand All @@ -20,13 +22,16 @@ def 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
- 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:
Example::
sage: a, b = ttest([1,2,3,4,5],[1,2,3,3.5,5.121]); a
0.941026372027427
"""
Expand Down

0 comments on commit 6858c7f

Please sign in to comment.