summary.tTest | R Documentation |
Summarize the outcome of a t test
## S3 method for class 'tTest'
summary(object, rnd = 3L, ...)
object |
object of class |
rnd |
number of decimal places. Should have length 1 or 3. One value specifies the rounding value for the degrees of freedom, t statistic and p value all at once, while specifying three values gives the rounding values for the three statistics respectively. |
... |
other arguments of the summary generic (none are used). |
summary.htest
returns a typical APA-like output (without italics) for a t-test.
Mathijs Deen
x1 <- QIDS$QIDS[QIDS$depression == "Yes"]
x2 <- QIDS$QIDS[QIDS$depression == "No"]
tt <- tTest(x1, x2)
summary(tt, rnd = c(1,2,3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.