anova_apa: Report ANOVA in APA style

Description Usage Arguments Examples

Description

Report ANOVA in APA style

Usage

1
2
3
4
anova_apa(x, effect = NULL, sph_corr = c("greenhouse-geisser", "gg",
  "huynh-feldt", "hf", "none"), es = c("petasq", "pes", "getasq", "ges"),
  format = c("text", "markdown", "rmarkdown", "html", "latex", "docx",
  "plotmath"), info = FALSE, print = TRUE)

Arguments

x

a call to ez::ezANOVA or afex::afex_ez, afex::afex_car or afex::afex_4

effect

character string indicating the name of the effect to display. If is NULL, all effects are reported (default).

sph_corr

character string indicating the method used for correction if sphericity is violated (only applies to repeated-measures and mixed design ANOVA). Can be one of "greenhouse-geisser" (default), "huynh-feldt" or "none" (you may also use the abbreviations "gg" or "hf").

es

character string indicating the effect size to display in the output, one of "petasq" (partial eta squared) or "getasq" (generalized eta squared) (you may also use the abbreviations "pes" or "ges").

format

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

info

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

print

logical indicating wheter to print the formatted output via cat (TRUE, default) or return as a data frame.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
library(magrittr)

# Using the ez package
library(ez)
ezANOVA(height, dv = anxiety, wid = id, within = level, between = group,
        detailed = TRUE) %>%
  anova_apa()

# Using the afex package
library(afex)
aov_ez(id = "id", dv = "anxiety", data = height, between = "group",
       within = "level") %>%
  anova_apa()

## End(Not run)

dgromer/psymisc documentation built on May 15, 2019, 7:22 a.m.