HolmTest: Holm-Adjusted Pairwise Comparisons

View source: R/HolmTest.R

HolmTestR Documentation

Holm-Adjusted Pairwise Comparisons

Description

Performs pairwise t-tests with p-values adjusted using Holm’s sequential method.

Usage

HolmTest(modelo, alpha = 0.05)

Arguments

modelo

An object of class aov or lm.

alpha

Significance level (default is 0.05).

Details

Advantages: - Controls family-wise error rate more efficiently than Bonferroni. - Easy to apply over any set of p-values.

Disadvantages: - Does not adjust test statistics, only p-values. - Slightly more conservative than false discovery rate (FDR) methods.

Value

An object of class "holm" and "comparaciones", containing:

  • Resultados: Data frame of comparisons, mean differences, t-values, unadjusted and adjusted p-values, and significance codes.

  • Promedios: Named numeric vector of group means.

  • Orden_Medias: Character vector with group names ordered from highest to lowest mean.

  • Metodo: Name of the method used ("Holm-adjusted t-test").

References

Holm, S. (1979). A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 6(2), 65–70.

Examples

data(d_e, package = "Analitica")
mod <- aov(Sueldo_actual ~ as.factor(labor), data = d_e)
resultado <- HolmTest(mod)
summary(resultado)
plot(resultado)



Analitica documentation built on June 14, 2025, 9:07 a.m.