tadaa_pairwise_tukey: Tukey HSD pairwise comparisons

Description Usage Arguments Value See Also Examples

View source: R/tadaa_pairwise_tukey.R

Description

This function is merely a thin wrapper around stats::TukeyHSD with tidying done by broom::tidy and optional formatting via pixiedust::sprinkle. Its input is not a aov model like in the original function, but instead the aov model is fit internally based on the arguments given. This is meant to enable a consistent usage between the tadaa_pairwise-functions.

Usage

1
tadaa_pairwise_tukey(data, response, group1, group2 = NULL, print = "df", ...)

Arguments

data

A data.frame containing the variables.

response

The response variable, i.e. the dependent numeric vector.

group1

The grouping variables, typically a factor.

group2

(Optional) second grouping variable.

print

Print method, defaults to df for data.frame output, otherwise passed to pixiedust::sprinkle_print_method.

...

Further arguments passed to stats::TukeyHSD

Value

A data.frame or pixiedust::dust object depending on print.

See Also

tadaa_pairwise_t()

Other Tadaa-functions: tadaa_aov(), tadaa_chisq(), tadaa_kruskal(), tadaa_levene(), tadaa_nom(), tadaa_one_sample(), tadaa_ord(), tadaa_pairwise_t(), tadaa_t.test(), tadaa_wilcoxon()

Examples

1
2
tadaa_pairwise_tukey(data = ngo, deutsch, jahrgang, geschl)
tadaa_pairwise_tukey(data = ngo, deutsch, jahrgang, print = "console")

tadaatoolbox documentation built on July 2, 2020, 2:30 a.m.