unianova: Compute one-way ANOVAs

Description Usage Arguments Value Examples

View source: R/unianova.R

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

1
unianova(data, group_var, ..., descriptives = FALSE, post_hoc = FALSE)

Arguments

data

a tibble

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

Examples

1
2
3
WoJ %>% unianova(employment, autonomy_selection, autonomy_emphasis)
WoJ %>% unianova(employment)
WoJ %>% unianova(employment, descriptives = TRUE, post_hoc = TRUE)

tidycomm documentation built on July 6, 2021, 5:07 p.m.