afex: Analysis of Factorial Experiments

Provides convenience functions for analyzing factorial experiments using ANOVA or mixed models. aov_ez(), aov_car(), and aov_4() allow convenient specification of between, within (i.e., repeated-measures), or mixed between-within (i.e., split-plot) ANOVAs for data in long format (i.e., one observation per row), potentially aggregating multiple observations per individual and cell of the design. mixed() fits mixed models using lme4::lmer() and computes p-values for all effects using either Kenward-Roger approximation for degrees of freedom (LMM only), parametric bootstrap (LMMs and GLMMs), or likelihood ratio tests (LMMs and GLMMs). afex uses type 3 sums of squares as default (imitating commercial statistical software).

AuthorHenrik Singmann [aut, cre], Ben Bolker [aut], Jake Westfall [aut], Sren Hjsgaard [ctb], John Fox [ctb], Michael A. Lawrence [ctb], Ulf Mertens [ctb]
Date of publication2015-05-18 10:18:36
MaintainerHenrik Singmann <>
LicenseGPL (>=3)

View on R-Forge


afex_aov-methods Man page
afex-deprecated Man page
afex_options Man page
afex-package Man page
allFit Man page
anova.afex_aov Man page
aov4 Man page
aov_4 Man page
aov_car Man page Man page
aov_ez Man page
compare.2.vectors Man page
ems Man page
ez.glm Man page
lsm.basis.afex_aov Man page
md_12.1 Man page
md_15.1 Man page
md_16.1 Man page
md_16.4 Man page
mixed Man page
nice Man page
nice.afex_aov Man page
nice.anova Man page
nice.mixed Man page
obk.long Man page
print.afex_aov Man page Man page
round_ps Man page
set_default_contrasts Man page
set_deviation_contrasts Man page
set_effects_contrasts Man page
set_sum_contrasts Man page
set_treatment_contrasts Man page
sk2011.1 Man page
summary.afex_aov Man page

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.