Learn R Programming

MDMA (version 2.0.0)

summary.tTest: Summarize outcome of a t test

Description

Summarize the outcome of a t test

[Stable]

Usage

# S3 method for tTest
summary(object, rnd = 3L, ...)

Value

summary.htest returns a typical APA-like output (without italics) for a t-test.

Arguments

object

object of class htest (i.e., the result of mdma::tTest or stats::t.test).

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).

Author

Mathijs Deen

Examples

Run this code
x1 <- QIDS$QIDS[QIDS$depression == "Yes"]
x2 <- QIDS$QIDS[QIDS$depression == "No"]
tt <- tTest(x1, x2)
summary(tt, rnd = c(1,2,3))

Run the code above in your browser using DataLab