View source: R/signif_groups.R
signif_groups | R Documentation |
Retrieve significant groups after a pairwise post-hoc test.
signif_groups(g, m, t_tab, criterion, decreasing = TRUE)
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 |
A data frame with the names of the groups and their respective significant groups.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.