wrap.anova | R Documentation |
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, fixed effects,
equality of variances for between-subjects factors, and sphericity for within-subjects
factors. If variance differs significantly by condition in a fully between-subjects
analysis, or if sphericity does not hold, the function additionally displays
assumption checks. In the output, hp2 denotes partial eta squared.
wrap.anova(dv1, iv1 = NULL, iv2 = NULL, iv3 = NULL, type = 3)
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 ( |
ezANOVA
## ANOVA with 1 within-subjects factor wrap.anova(dv1 = bdata[c(6, 8)]) ## ANOVA with 2 between-subjects factors wrap.anova(dv1 = bdata$DV5, iv1 = bdata$IV1, iv2 = bdata$IV2) ## ANOVA with 1 within-subjects factor & 2 between-subjects factors wrap.anova(dv1 = bdata[c(6, 8)], iv1 = bdata$IV1, iv2 = bdata$IV2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.