wrap.anova.main: ANOVA (main effects & interaction effects)

Description Usage Arguments See Also Examples

View source: R/wrap.anova.main.R

Description

Computes main effects and interaction effects for ANOVA with up to 1 within-subjects factor and up to 3 between-subjects factors. The function delegates the primary computations to ezANOVA. Note that this function assumes categorical (i.e., unordered) independent variables and fixed effects. In the output, hp2 denotes partial eta squared.

Usage

1
wrap.anova.main(dv1, iv1 = NULL, iv2 = NULL, iv3 = NULL, type = 3)

Arguments

dv1

Column vector containing the between-subjects dependent variable OR multiple column vectors containing the within-subjects dependent variables

iv1, iv2, iv3

Column vectors containing the between-subjects independent variables

type

Numeric argument representing sum-of-squares type (1, 2, or 3)

See Also

ezANOVA

Examples

1
2
3
4
5
6
7
8
## ANOVA with 1 within-subjects factor
wrap.anova.main(dv1 = bdata[c(4, 5)])

## ANOVA with 2 between-subjects factors
wrap.anova.main(dv1 = bdata$DV1, iv1 = bdata$IV1, iv2 = bdata$IV2)

## ANOVA with 1 within-subjects factor & 2 between-subjects factors
wrap.anova.main(dv1 = bdata[c(4, 5)], iv1 = bdata$IV1, iv2 = bdata$IV2)

michaelkardas/behavioralwrappers documentation built on Jan. 2, 2020, 7:46 a.m.