Learn R Programming

afex (version 0.2-26)

afex-package: Analysis of Factorial Experiments.

Description

Analysis of Factorial Experiments.

Arguments

Details

ll{ Package: afex Type: Package Version: 0.2-26 Date: 2012-08-09 Depends: R (>= 2.14.0), car, lme4, pbkrtest, reshape2, stringr Encoding: UTF-8 License: GPL (>=3) URL: http://www.psychologie.uni-freiburg.de/Members/singmann/R/afex } Provides convenience functions for analyzing factorial experiments using ANOVA or mixed-models. Functions ez.glm() and aov.car() allow convenient specification of pure-between, pure-within (i.e., repeated-measures), and mixed between-within (i.e., split-plot) ANOVAs and ANCOVAs with type 2 and type 3 sums of squares 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). Function nice.anova() produces publication ready ANOVA tables. Function mixed() fits a mixed model using lme4::lmer() and computes p-values for all effects in the model (using the Kenward-Rogers approximation of degrees of freedom). afex uses type 3 sums of squares as default (imitating commercial statistical software) and sets the default contrasts to contr.sum.