tStats: tStats as text

Description Usage Arguments Value Author(s) Examples

Description

Get the t-statistics from the object of t.test.

Usage

1
2
tStats(t.fit, round = 2, out.text = "plain", eff.size = NULL,
  eff.type = NULL)

Arguments

t.fit

The object containing the result of t.test

round

Number of decimals to which the test-statistic is rounded.

out.text

The format of the output text. Currently available are

  • "plain" for plain text output (needs only manual editing for word, for example)

  • "plot" for an output that can be used as input for example in text.

  • "latex" will follow for easy use in markdown.

eff.size

Effect size that can be inserted manually (see tes for the computation of an effect size for a t-value). Default is to NULL.

eff.tpye

Name of the effect size. Must be character. Default is to NULL.

Value

Returns a character string with the t-statistics of a t-test.

Author(s)

Kai T. Horstmann

Examples

1
2
3
4
fit <- t.test(1:10, y = c(7:20))
boxplot(1:10, c(7:20))
mtext(side = 1, line = 2, tStats(fit, out = "plot"))
mtext(side = 3, line = 2, tStats(fit, out = "plot", eff.size = -2.29, eff.type = "d"))

kthorstmann/horst documentation built on May 20, 2019, 7:04 p.m.