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 (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).
- Version1.5-0
- R versionR (≥ 3.5.0)
- LicenseGPL-2
- LicenseGPL-3
- Needs compilation?No
- Last release08/24/2025
Documentation
- VignetteAnalysis of Accuracy Data using ANOVA and binomial GLMMs
- VignetteANOVA and Post-Hoc Contrasts: Reanalysis of Singmann and Klauer (2011)
- VignetteMixed Model Example Analysis: Reanalysis of Freeman et al. (2010)
- Vignetteafex_plot: Publication Ready Plots for Experimental Designs
- Vignetteafex_plot: Supported Models
- VignetteTesting the Assumptions of ANOVAs
- VignetteAn Introduction to Mixed Models for Experimental Psychology
- MaterialREADME
- MaterialNEWS
- In ViewsMixedModels
Team
Henrik Singmann
MaintainerShow author detailsRune Haubo Bojesen Christensen
Show author detailsRolesContributorUlf Mertens
Show author detailsRolesContributorBen Bolker
Show author detailsRolesAuthorMichael A. Lawrence
Show author detailsRolesContributorRussell Lenth
Show author detailsRolesContributorFrederik Aust
John Fox
Show author detailsRolesContributorJake Westfall
Show author detailsRolesAuthorSøren Højsgaard
Show author detailsRolesContributorJonathon Love
Show author detailsRolesContributorMattan S. Ben-Shachar
Show author detailsRolesAuthor
Insights
Last 30 days
The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.
Last 365 days
The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.
Data provided by CRAN
Binaries
Dependencies
- Depends1 package
- Imports6 packages
- Suggests40 packages
- Reverse Depends1 package
- Reverse Imports9 packages
- Reverse Suggests14 packages