MyNixOS website logo
Description

The ScottKnott Clustering Algorithm.

Performs the Scott & Knott (1974) clustering algorithm as a multiple comparison method in the Analysis of Variance context, for both balanced and unbalanced <doi:10.1590/1984-70332017v17n1a1> designs. Accepts input from 'formula', 'aov', 'lm', 'aovlist', and 'lmerMod' objects.

ScottKnott

ScottKnott is an R package that implements the Scott & Knott clustering algorithm as a multiple comparison method in the Analysis of Variance (ANOVA) context, for both balanced and unbalanced designs.

CRAN status CRAN downloads CRAN checks Lifecycle: stable License: GPL (>= 2)

Key Features

  • Performs the Scott & Knott clustering algorithm for balanced and unbalanced designs.
  • Accepts input from formula, aov, lm, aovlist, and lmerMod objects.
  • Supports single, factorial, split-plot, split-plot in time, and split-split-plot experiments.
  • Adjusted means via Least-Squares Means (emmeans) for unbalanced data.
  • Rich plot method with customisable dispersion bands (min–max, SD, CI, pooled CI).
  • Reporting support with xtable.

Installation

Install from CRAN:

install.packages("ScottKnott")

Install the development version from GitHub:

# install.packages("remotes")
remotes::install_github("ivanalaman/ScottKnott")

Quick Start

library(ScottKnott)

## Completely Randomized Design (CRD) — balanced
data(CRD1)

sk1 <- with(CRD1,
            SK(y ~ x,
               data = dfm,
               which = 'x'))
summary(sk1)
plot(sk1, 
     dispersion = 'sd',
     d.col = 'steelblue')

## Randomized Complete Block Design (RCBD)
data(RCBD)

sk2 <- with(RCBD,
            SK(y ~ blk + tra,
               data = dfm,
               which = 'tra'))
summary(sk2)
plot(sk2, 
     dispersion = 'ci', 
     d.col = 'red')

Project Layout

  • /R: Core functions and S3 methods.
  • /man: Reference documentation (.Rd files).
  • /data: Example datasets (CRD, RCBD, LSD, FE, SPE, SPET, SSPE, sorghum).
  • /demo: Runnable demos for each experimental design.
  • /inst: Package citation file.

Contributing

Contributions are welcome. Open an issue or submit a pull request with:

  • Bug fixes and performance improvements.
  • Documentation and usability updates.
  • New ideas for grouping procedures or graphical displays.

To check and build locally:

R CMD check ScottKnott
R CMD build ScottKnott
R CMD INSTALL ScottKnott_X.X-X.tar.gz

Roadmap

  • Add automated tests (testthat) for all experimental designs.
  • Expand vignettes covering balanced and unbalanced use cases.
  • Keep documentation aligned with current S3 behaviour.

Developed by:
Faria, J. C.; Jelihovschi, E. G.; Allaman, I. B.
Universidade Estadual de Santa Cruz - UESC
Departamento de Ciencias Exatas - DCEX
Ilheus - Bahia - Brasil.

Metadata

Version

1.4-0

License

Unknown

Platforms (80)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arc-linux
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • sh4-linux
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows