Learn R Programming

tidycomm (version 0.0.1)

unianova: 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.

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 FALSE.

post_hoc

a logical indicating whether post-hoc tests (Tukey's HSD) should be computed. Results of the post-hoc test will be added in a list column of result tibbles.

Value

a tibble

See Also

Other ANOVA: compute_aov

Examples

Run this code
# NOT RUN {
WoJ %>% unianova(employment, autonomy_selection, autonomy_emphasis)
WoJ %>% unianova(employment)
WoJ %>% unianova(employment, descriptives = TRUE, post_hoc = TRUE)

# }

Run the code above in your browser using DataLab