public class MultipleComparisons extends Object implements Serializable, Cloneable
MultipleComparisons performs a multiple comparison
analysis of means using the Student-Newman-Keuls method. The null hypothesis
is equality of all possible ordered subsets of a set of means. This null
hypothesis is tested using the Studentized range of each of the
corresponding subsets of sample means. The method is discussed in many
elementary statistics texts, e.g., Kirk (1982, pp. 123-125).
|Constructor and Description|
|Modifier and Type||Method and Description|
Performs Student-Newman-Keuls multiple comparisons test.
Sets the significance level of the test
public MultipleComparisons(double means, int df, double stdError)
doublearray containing the means.
intscalar containing the degrees of freedom associated with
doublescalar containing the effective estimated standard error of a mean. In fixed effects models,
stdErrorequals the estimated standard error of a mean. For example, in a one-way model where is the estimate of and n is the number of responses in a sample mean. In models with random components, use where
sedifis the estimated standard error of the difference of two means.
public final int compute()
intarray , call it
equalMeansindicating the size of the groups of means declared to be equal. Value
equalMeans[I] = Jindicates the I-th smallest mean and the next J-1 larger means are declared equal. Value
equalMeans[I] = 0indicates no group of means starts with the I-th smallest mean.
public void setAlpha(double alpha)
doublescalar containing the significance level of test.
alphamust be in the interval [0.01, 0.10]. Default: alpha = 0.01
Copyright © 1970-2015 Rogue Wave Software
Built October 13 2015.