Movatterモバイル変換


[0]ホーム

URL:


cld:Compact Letter Display for Statistical Comparisons

CRAN statusGitHub versionR-CMD-checkCodecovUpdated-on

Simplify your statistical reporting with compact letterdisplays

Thecld package provides an easy and consistent wayto create compact letter displays (CLDs) for visualizing results ofpairwise statistical comparisons. Groups sharing the same letter are notsignificantly different from each other — a convention widely used inagricultural, biological, and statistical publications.

Why Use cld?

Key Features:

Installation

Install the stable version from CRAN:

install.packages("cld")

Install the development version fromGitHub:

# install.packages("devtools")devtools::install_github("GegznaV/cld")

Quick Start

Thecld package works with various statistical testoutputs. Here’s a simple example:

library(cld)# Run a pairwise testtest_result<-pairwise.wilcox.test(chickwts$weight, chickwts$feed,exact =FALSE)# Generate compact letter displaymake_cld(test_result)#>      group cld spaced_cld#>     casein   a        a__#>  horsebean   b        _b_#>    linseed  bc        _bc#>   meatmeal  ac        a_c#>    soybean   c        __c#>  sunflower   a        a__

Interpretation:

Supported Input Formats

Themake_cld() function works seamlessly with:

Input TypeExample PackagesFunction Examples
pairwise.htestbase Rpairwise.t.test(),pairwise.wilcox.test()
PMCMR /PMCMRplusPMCMR, PMCMRpluskwAllPairsConoverTest(),dunnTest()
data.frame (rstatix)rstatixgames_howell_test(),tukey_hsd()
PostHocTestDescToolsConoverTest(),DunnettTest()
matrixCustomSymmetric p-value matrices
data.frameCustomCustom comparison data frames
formulaCustomFormula interface for data frames

Learn More

📚Comprehensive vignettes (also available onpackage website):

Related Packages

PackagePurposeRelationship to cld
multcompViewCLD algorithmUsed internally bycld
rcompanionStatistical functionsAlternative CLD implementation
PMCMRplusPost-hoc testsCompatible input forcld
rstatixTidy statisticsCompatible input forcld
DescToolsStatistical toolsCompatible input forcld

Getting Help

Citation

To cite thecld package in publications:

citation("cld")

License

GPL-3


[8]ページ先頭

©2009-2025 Movatter.jp