Package DistLib
Class tukey
java.lang.Object
DistLib.tukey
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 invalid input: '&' 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 invalid input: '&' 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
-