ANOVA | R Documentation |
This function performs a comprehensive Analysis of Variance (ANOVA) that handles both univariate and multivariate designs. It provides detailed statistics including effect sizes and sphericity tests for repeated measures designs.
ANOVA(data, dv, formula, type = 2)
data |
A data frame containing the variables for analysis |
dv |
Character string specifying the dependent variable |
formula |
A formula object specifying the ANOVA design. For repeated measures, the within-subjects factors should be on the right side of the ~ |
type |
Numeric value specifying the type of sum of squares to use (default = 2) |
The function calculates: * Partial eta-squared (etaSqP) * Eta-squared (etaSq) * Omega-squared (omegaSq) * F-values and p-values * Sphericity tests for repeated measures designs
A list object of class "ANOVA" containing:
fit |
The fitted linear model object |
idata |
Data frame containing the within-subjects factor levels |
wdata |
The data in wide format |
full.analysis |
Complete Anova results |
results |
List containing univariate and multivariate results |
sphericity.test |
Mauchly's test of sphericity (for repeated measures) |
sphericity.correction |
Sphericity corrections (Greenhouse-Geisser and Huynh-Feldt) |
# Between-subjects ANOVA
ANOVA(data = mydata, dv = "score", formula = ~ group)
# Repeated measures ANOVA
ANOVA(data = mydata, dv = "score", formula = subject ~ time)
# Mixed ANOVA
ANOVA(data = mydata, dv = "score", formula = subject + group ~ time)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.