Skip to content

ENH: grouping for pairwise comparison, tukey-hsd #3669

Open

Description

@josef-pkt

http://stackoverflow.com/questions/43987651/tukey-test-grouping-and-plotting-in-scipy

see reference cited in R package multcompView
Piepho, Hans-Peter. 2004. “An Algorithm for a Letter-Based Representation of All-Pairwise Comparisons.” Journal of Computational and Graphical Statistics 13 (2): 456–66.

This looks just like the standard combine all non-significant pairs into groups, where groups can overlap and do not partition the set of groups. AFAIR several packages print a list for this.

I don't remember whether I ever made a function for this.

For the boxplot or letter labeling a group is assigned the combination of the letter identifier of all groups it belongs to.

Activity

  1. josef-pkt commented on Jan 25, 2025

    @josef-pkt
    MemberAuthor

    another good answer: https://stats.stackexchange.com/questions/275832/interpreting-compact-letter-displays-and-tukey-multiple-comparisons-from-glmm

    vertical letter and/or lines (SAS has lines, AFAICS from options)

    aside:
    plot_simultaneous should have a sort option, i.e. reordering groups by mean
    letter codes cannot be added to summary_frame because it is for pairs.
    We would need a group_frame with ci confint and letter codes, and within group var/std/se for univariate group mean estimate.

  2. anyusernameisokay commented on Jan 7, 2026

    @anyusernameisokay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions