Learn R Programming

papaja (version 0.1.0.9054)

apa_print.aov: Format statistics from ANOVA (APA 6th edition)

Description

These methods take objects from various R functions that calculate ANOVA to create formated chraracter strings to report the results in accordance with APA manuscript guidelines. anova-objects from e.g. model comparisons are currently not supported.

Usage

"apa_print"(x, es = "ges", observed = NULL, in_paren = FALSE, ...)
"apa_print"(x, es = "ges", observed = NULL, in_paren = FALSE, ...)
"apa_print"(x, es = "ges", observed = NULL, in_paren = FALSE, ...)
"apa_print"(x, es = "ges", observed = NULL, in_paren = FALSE, ...)
"apa_print"(x, es = "ges", observed = NULL, in_paren = FALSE, ...)
"apa_print"(x, correction = "GG", es = "ges", observed = NULL, in_paren = FALSE, ...)

Arguments

x
Output object. See details.
es
Character. The effect-size measure to be calculated; can be either ges for generalized eta-squared or pes for partial eta-squared.
observed
Character. The names of the factors that are observed, (i.e., not manipulated). Necessary for calculation of generalized eta-squared; otherwise ignored.
in_paren
Logical. Indicates if the formated string will be reported inside parentheses. See details.
...
Additional arguments passed to or from other methods.
correction
Character. In the case of repeated-measures ANOVA, the type of sphericity correction to be used. Either GG for Greenhouse-Geisser or HF for Huyn-Feldt methods or none is also possible.

Value

apa_print.aov and related functions return a list containing the following components according to the input:

Details

Currently, methods for the following objects are available:
  • aov
  • summary.aov
  • aovlist
  • summary.aovlist
  • anova
  • Anova.mlm

The factor names are sanitized to facilitate their use as list names (see Value section). Parentheses are omitted and other non-word characters are replaced by _.

If in_paren is TRUE parentheses in the formated string, such as those surrounding degrees of freedom, are replaced with brackets.

References

Bakeman, R. (2005). Recommended effect size statistics for repeated measures designs. Behavior Research Methods , 37 (3), 379-384. doi:10.3758/BF03192707

See Also

aov, Anova

Other apa_print: apa_print.htest; apa_print.lm, apa_print.summary.lm; apa_print

Examples

Run this code
## From Venables and Ripley (2002) p. 165.
   npk_aov <- aov(yield ~ block + N * P * K, npk)
   apa_print(npk_aov)

Run the code above in your browser using DataLab