Package DistLib
Class tukey
- java.lang.Object
-
- DistLib.tukey
-
public class tukey extends java.lang.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 tukey()
-
Method Summary
All Methods Static Methods Concrete Methods 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.
-
-
-
Method Detail
-
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 groupscc
- no. of columns or treatmentsdf
- degrees of freedom of error term- Returns:
- critical value
-
-