t_apa: Report t-Test in APA style

Description Usage Arguments Examples

View source: R/t_apa.R

Description

Report t-Test in APA style

Usage

1
2
3
t_apa(x, es = "cohens_d", format = c("text", "markdown", "rmarkdown",
  "html", "latex", "latex_math", "docx", "plotmath"), info = FALSE,
  print = TRUE)

Arguments

x

A call to t_test or t.test

es

Character specifying the effect size to report. One of "cohens_d" (default), "hedges_g" or "glass_delta" if x is an independent samples t-test. Ignored if x is a paired samples or one sample t-test (cohen's d is reported for these test).

format

Character string specifying the output format. One of "text", "markdown", "rmarkdown", html, "latex", "latex_math", "docx" or "plotmath".

info

Logical indicating whether to print a message on the used test (default is FALSE)

print

Logical indicating whether to print the formatted output via cat (TRUE, default) or return as character string.

Examples

1
2
3
4
5
# Two independent samples t-test
t_apa(t_test(1:10, y = c(7:20)))

# Two dependent samples t-test
t_apa(t_test(extra ~ group, sleep, paired = TRUE))

apa documentation built on Oct. 17, 2018, 1:04 a.m.