signif_groups: Retrieve significant groups after pairwise post-hoc tests

View source: R/signif_groups.R

signif_groupsR Documentation

Retrieve significant groups after pairwise post-hoc tests

Description

Retrieve significant groups after a pairwise post-hoc test.

Usage

signif_groups(g, m, t_tab, criterion, decreasing = TRUE)

Arguments

g

A character vector with the names of the groups.

m

A numeric vector with the average values for the tested variable in each group. This vector is used to sort the groups (from bigger to smaller values) and assign the respective letters.

t_tab

A data frame with the results of pairwise contrast. Two columns are mandatory in this table, namely 'group1' and 'group2' containing the contrasted groups. Note that the values in these columns need to match 'g'.

criterion

An expression (symbol) used to define groups belonging to the same significant group, for instance a cut level for a p-value.

decreasing

Logical value, whether the sorting of mean values should be done from the highest to the lowest or vice versa. This argument is passed to order().

Value

A data frame with the names of the groups and their respective significant groups.


kamapu/Lexiguel documentation built on July 29, 2022, 7:52 p.m.