Learn R Programming

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

afex (version 0.12-135)

Analysis of Factorial Experiments

Description

Provides convenience functions for analyzing factorial experiments using ANOVA or mixed models. ez.glm(), aov.car(), or aov4() 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) aggregating more then one observation per individual and cell of the design. mixed() fits a mixed model using lme4::lmer() and computes p-values for all effects in the model using either Kenward-Roger approximation of 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). compare.2.vectors() compares two vectors using a variety of tests (t, wilcoxon, and permutation).

Copy Link

Version

Install

install.packages('afex')

Monthly Downloads

29,426

Version

0.12-135

License

GPL (>= 3)

Maintainer

Henrik Singmann

Last Published

November 3rd, 2014

Functions in afex (0.12-135)

md_16.1

Data 16.1 / 10.9 from Maxwell & Delaney
md_16.4

Data 16.4 from Maxwell & Delaney
round_ps

Helper function which rounds p-values
set_sum_contrasts

Set global contrasts
afex-package

The afex Package
aov.car

Convenience wrappers for car::Anova using either a formula or factor based interface.
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
md_12.1

Data 12.1 from Maxwell & Delaney
allFit

Refit lmer model using multiple optimizers
compare.2.vectors

Compare two vectors using various tests.
md_15.1

Data 15.1 / 11.5 from Maxwell & Delaney