get_letters: Get Letters for Multiple Comparisons

View source: R/functions.R

get_lettersR Documentation

Get Letters for Multiple Comparisons

Description

Gets the letter matrix for a compact letter display. This can be passed to the letter_plot() function from the psre package to produce plots of confidence intervals with a letter display.

Usage

get_letters(x = NULL, ...)

Arguments

x

An object that can be one of the following classes: an object of class glht produced by glht() from the multcomp package, an object of class emmGrid produced by the emmeans package, or a list with elements est - a vector of estimates and var - a variance-covariance matrix for the estimates.

...

Additional arguments passed down either to cld if the object is an emmGrid class or summary.glht if the object is a glht class. If x is a list of estimates and variances, it will be converted to an emmGrid object internally and the emmGrid method dispatched, ... will be passed to cld in that case. Additional arguments for the summary.glht() include test and a host of others. See the help file for summary.glht for examples. Additional arguments for cld include adjust for multiplicity corrections and others. See ?emmeans:::cld.emmGrid for options and details.

Value

A logical index indicating which estimates are in which letter group.


VizTest documentation built on Dec. 4, 2025, 9:07 a.m.