Learn R Programming

papaja (version 0.1.0.9479)

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

Description

These methods take objects from various R functions that calculate ANOVA to create formatted chraracter strings to report the results in accordance with APA manuscript guidelines. For anova-objects from model comparisons see apa_print.list.

Usage

"apa_print"(x, ...)
"apa_print"(x, ...)
"apa_print"(x, ...)
"apa_print"(x, ...)
"apa_print"(x, correction = getOption("papaja.sphericity_correction"), intercept = FALSE, ...)
"apa_print"(x, correction = getOption("papaja.sphericity_correction"), intercept = FALSE, ...)
"apa_print"(x, correction = getOption("papaja.sphericity_correction"), intercept = FALSE, ...)
"apa_print"(x, ...)

Arguments

x
Output object. See details.
...
Additional arguments passed to to print_anova.
correction
Character. In the case of repeated-measures ANOVA, the type of sphericity correction to be used (GG for Greenhouse-Geisser or HF for Huyn-Feldt methods or none). Default is GG.
intercept
Logical. Indicates if intercept test should be included in output.

Value

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

Details

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 formatted 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, apa_print.list

Other apa_print: apa_print.glht, apa_print.htest, apa_print.list, apa_print.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