anova_apa {apa} | R Documentation |
Report ANOVA in APA style
Description
Report ANOVA in APA style
Usage
anova_apa(
x,
effect = NULL,
sph_corr = c("greenhouse-geisser", "gg", "huynh-feldt", "hf", "none"),
force_sph_corr = FALSE,
es = c("petasq", "pes", "getasq", "ges"),
format = c("text", "markdown", "rmarkdown", "html", "latex", "latex_math", "docx",
"plotmath"),
info = FALSE,
print = TRUE
)
Arguments
x |
A call to |
effect |
Character string indicating the name of the effect to display.
If is |
sph_corr |
Character string indicating the method used for correction if
the assumption of sphericity is violated (only applies to repeated-measures
and mixed design ANOVA). Can be one of |
force_sph_corr |
Logical indicating if sphericity correction should be
applied to all within factors regardless of what the result of Mauchly's
test of sphericity is (default is |
es |
Character string indicating the effect size to display in the
output, one of |
format |
Character string specifying the output format. One of
|
info |
Logical indicating whether to print a message on the used test
(default is |
print |
Logical indicating whether to print the formatted output via
|
Examples
# Using the ez package
library(ez)
data(ANT)
x <- ezANOVA(ANT[ANT$error==0,], dv = rt, wid = subnum,
within = c(cue, flank), between = group, detailed = TRUE)
anova_apa(x)
# Using the afex package
library(afex)
data(md_12.1)
y <- aov_ez(id = "id", dv = "rt", data = md_12.1,
within = c("angle", "noise"))
anova_apa(y)