Skip to content

afex

Analysis of Factorial Experiments

v1.5-1 · Dec 14, 2025 · GPL (>= 2)

Description

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 (i.e., split-plot) ANOVAs for data in long format (i.e., one observation per row), automatically 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_plot() provides a high-level interface for interaction or one-way plots using ggplot2, combining raw data and model estimates. afex uses type 3 sums of squares as default (imitating commercial statistical software).

Downloads

26.8K

Last 30 days

716th

85.4K

Last 90 days

343.8K

Last year

Trend: -4.9% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (26)

depends

Dependency Network

Dependencies Reverse dependencies lme4 pbkrtest lmerTest car reshape2 reformulas rlang AOboot BiostatsUHNplus Superpower bruceR extraSuperpower fullfact jmv pwr2ppl r2glmm statsExpressions TOSTER apa colleyRstats designr effectsize +11 more reverse deps afex

Version History

new 1.5-1 Mar 10, 2026
updated 1.5-1 ← 1.5-0 diff Dec 13, 2025
updated 1.5-0 ← 1.4-1 diff Aug 23, 2025
updated 1.4-1 ← 1.3-1 diff Aug 31, 2024
updated 1.3-1 ← 1.3-0 diff Feb 24, 2024
updated 1.3-0 ← 1.2-1 diff Apr 17, 2023
updated 1.2-1 ← 1.2-0 diff Jan 8, 2023
updated 1.2-0 ← 1.1-1 diff Oct 30, 2022
updated 1.1-1 ← 1.1-0 diff Apr 29, 2022
updated 1.1-0 ← 1.0-1 diff Mar 26, 2022
updated 1.0-1 ← 1.0-0 diff Jul 21, 2021
updated 1.0-0 ← 0.28-1 diff Jul 20, 2021
updated 0.28-1 ← 0.28-0 diff Jan 11, 2021
updated 0.28-0 ← 0.27-2 diff Sep 19, 2020
updated 0.27-2 ← 0.26-0 diff Mar 27, 2020
updated 0.26-0 ← 0.25-1 diff Jan 15, 2020
updated 0.25-1 ← 0.24-1 diff Aug 26, 2019
updated 0.24-1 ← 0.23-0 diff Jul 2, 2019
updated 0.23-0 ← 0.22-1 diff Feb 18, 2019
updated 0.22-1 ← 0.21-2 diff Sep 23, 2018