afex: Analysis of Factorial Experiments

Convenience functions for analyzing factorial experiments using ANOVA or mixed models. aov_ez(), aov_car(), and aov_4() allow 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), aggregating multiple observations per individual and cell of the design. mixed() fits mixed models using lme4::lmer() and computes p-values for all fixed effects using either Kenward-Roger or Satterthwaite 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).

Version: 0.19-1
Depends: R (≥ 3.1.0), lme4 (≥ 1.1-8), emmeans
Imports: stringr, coin, pbkrtest (≥ 0.4-1), lmerTest, car, reshape2, stats, methods
Suggests: xtable, parallel, plyr, optimx, nloptr, knitr, rmarkdown, lattice, latticeExtra, multcomp, testthat, mlmRev, dplyr, tidyr, dfoptim, Matrix, psych, ggplot2
Published: 2018-01-08
Author: Henrik Singmann ORCID iD [aut, cre], Ben Bolker [aut], Jake Westfall [aut], Frederik Aust ORCID iD [aut], Søren Højsgaard [ctb], John Fox [ctb], Michael A. Lawrence [ctb], Ulf Mertens [ctb], Jonathan Love [ctb]
Maintainer: Henrik Singmann <singmann+afex at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Materials: NEWS
CRAN checks: afex results


Reference manual: afex.pdf
Vignettes: ANOVA and Post-Hoc Contrasts: Reanalysis of Singmann and Klauer (2011)
Mixed Model Example Analysis: Reanalysis of Freeman et al. (2010)
Package source: afex_0.19-1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X El Capitan binaries: r-release: afex_0.19-1.tgz
OS X Mavericks binaries: r-oldrel: afex_0.19-1.tgz
Old sources: afex archive

Reverse dependencies:

Reverse imports: fullfact, jmv, r2glmm
Reverse suggests: apa, nauf, standardize


Please use the canonical form to link to this page.