unianova {tidycomm} | R Documentation |
Compute one-way ANOVAs
Description
Computes one-way ANOVAs for one group variable and specified test variables. If no variables are specified, all numeric (integer or double) variables are used. A Levene's test will automatically determine whether a classic ANOVA is used. Otherwise Welch's ANOVA with a (Satterthwaite's) approximation to the degrees of freedom is used.
Usage
unianova(data, group_var, ..., descriptives = FALSE, post_hoc = FALSE)
Arguments
data |
|
group_var |
group variable (column name) |
... |
test variables (column names). Leave empty to compute ANOVAs for all numeric variables in data. |
descriptives |
a logical indicating whether descriptive statistics (mean
& standard deviation) for all group levels should be added to the returned
tibble. Defaults to |
post_hoc |
a logical value indicating whether post-hoc tests should be performed. Tukey's HSD is employed when the assumption of equal variances is met, whereas the Games-Howell test is automatically applied when this assumption is violated. The results of the post-hoc test will be added to a list column in the resulting tibble. |
Value
a tdcmm model
Examples
WoJ %>% unianova(employment, autonomy_selection, autonomy_emphasis)
WoJ %>% unianova(employment, descriptives = TRUE, post_hoc = TRUE)
## Not run:
WoJ %>% unianova(employment)
## End(Not run)