Package DistLib

Class tukey

java.lang.Object
DistLib.tukey

public class tukey extends Object
Distribution of the maximum of rr studentized ranges, each based on cc means and with df degrees of freedom for the standard error, is less than q.

The algorithm is based on: Copenhaver, Margaret Diponzio & Holland, Burt S. Multiple comparisons of simple effects in the two-way analysis of variance with fixed effects. Journal of Statistical Computation and Simulation, Vol.30, pp.1-15, 1988.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    cumulative(double q, double rr, double cc, double df)
     
    static double
    quantile(double p, double rr, double cc, double df)
    Computes the quantiles of the maximum of rr studentized ranges, each based on cc means and with df degrees of freedom for the standard error, is less than q.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • tukey

      public tukey()
  • Method Details

    • cumulative

      public static double cumulative(double q, double rr, double cc, double df)
    • quantile

      public static double quantile(double p, double rr, double cc, double df)
      Computes the quantiles of the maximum of rr studentized ranges, each based on cc means and with df degrees of freedom for the standard error, is less than q. The algorithm is based on: Copenhaver, Margaret Diponzio & Holland, Burt S. Multiple comparisons of simple effects in the two-way analysis of variance with fixed effects. Journal of Statistical Computation and Simulation, Vol.30, pp.1-15, 1988. Uses the secant method to find critical values. If the difference between successive iterates is less than eps, the search is terminated and an exception thrown.
      Parameters:
      p - confidence level (1 - alpha)
      rr - no. of rows or groups
      cc - no. of columns or treatments
      df - degrees of freedom of error term
      Returns:
      critical value