ez_anova {psyntur} | R Documentation |
Analysis of variance
Description
This is wrapper to the ez::ezANOVA()
function.
Usage
ez_anova(
data,
dv,
wid,
within = NULL,
within_full = NULL,
within_covariates = NULL,
between = NULL,
between_covariates = NULL,
observed = NULL,
diff = NULL,
reverse_diff = FALSE,
type = 2,
white.adjust = FALSE,
detailed = FALSE,
return_aov = FALSE
)
Arguments
data |
Data frame containing the data to be analyzed. |
dv |
Name of the column in |
wid |
Name of the column in |
within |
Names of columns in |
within_full |
Same as within, but intended to specify the full within-Ss design in cases where the data have not already been collapsed to means per condition specified by |
within_covariates |
Names of columns in |
between |
Names of columns in |
between_covariates |
Names of columns in |
observed |
Names of columns in |
diff |
Names of any variables to collapse to a difference score. If a single value, may be specified by name alone; if multiple values, must be specified as a .() list. |
reverse_diff |
Logical. If TRUE, triggers reversal of the difference collapse requested by |
type |
Numeric value (either |
white.adjust |
Only affects behaviour if the design contains only between-Ss predictor variables. If not FALSE, the value is passed as the white.adjust argument to Anova, which provides heteroscedasticity correction. |
detailed |
Logical. If TRUE, returns extra information (sums of squares columns, intercept row, etc.) in the ANOVA table. |
return_aov |
Logical. If TRUE, computes and returns an aov object corresponding to the requested ANOVA (useful for computing post-hoc contrasts). |
Value
A list containing one or more components as returned by ez::ezANOVA()
.
Examples
ez_anova(data = selfesteem2_long,
dv = score,
wid = id,
within = c(time, treatment),
detailed = TRUE,
return_aov = TRUE)