Learn R Programming

⚠️There's a newer version (1.4-1) of this package.Take me there.

afex (version 0.6-82)

Analysis of Factorial Experiments

Description

Provides convenience functions for analyzing factorial experiments using ANOVA or mixed-models. ez.glm() and aov.car() allow convenient calculation of between, within (i.e., repeated-measures), or mixed between-within (i.e., split-plot) ANOVAs for data in the long format (i.e., one observation per row) wrapping car::Anova() (aggregating more then one observation per individual and cell of the design), per default returning a print ready ANOVA table. Function mixed() fits a mixed model using lme4::lmer() and computes p-values for all effects in the model using either the Kenward-Rogers approximation of degrees of freedom (LMM only), parametric bootstrap (LMMs and GLMMs) or likelihood ratio tests (LRT). afex uses type 3 sums of squares as default (imitating commercial statistical software) and sets the default contrasts to contr.sum. Furthermore, compare.2.vectors() conveniently compares two vectors using a variety of tests.

Copy Link

Version

Install

install.packages('afex')

Monthly Downloads

20,283

Version

0.6-82

License

GPL (>= 3)

Maintainer

Henrik Singmann

Last Published

September 26th, 2013

Functions in afex (0.6-82)

afex-package

The afex Package
mixed

Obtain p-values for a mixed-model from lmer().
nice.anova

Make nice ANOVA table for printing.
obk.long

O'Brien Kaiser's Repeated-Measures Dataset with Covariate
aov.car

Convenience wrappers for car::Anova using either a formula or factor based interface.
compare.2.vectors

Compare two vectors using various tests.