summary.tTest {MDMA}R Documentation

Summarize outcome of a t test

Description

Summarize the outcome of a t test

[Stable]

Usage

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

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

Value

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

Author(s)

Mathijs Deen

Examples

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

[Package MDMA version 1.1.0 Index]