Description Usage Arguments See Also Examples
View source: R/wrap.anova.main.R
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.
1 | wrap.anova.main(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 ( |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.