|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.imsl.stat.MultipleComparisons
public class MultipleComparisons
Performs Student-Newman-Keuls multiple comparisons test.
Class 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 Summary | |
---|---|
MultipleComparisons(double[] means,
int df,
double stdError)
Constructor for MultipleComparisons . |
Method Summary | |
---|---|
int[] |
compute()
Performs Student-Newman-Keuls multiple comparisons test. |
void |
setAlpha(double alpha)
Sets the significance level of the test |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipleComparisons(double[] means, int df, double stdError)
MultipleComparisons
.
means
- A double
array containing the means.df
- An int
scalar containing the degrees of freedom
associated with stdError
.stdError
- A double
scalar containing the effective
estimated standard error of a mean. In fixed effects
models, stdError
equals 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
sedif
is the estimated standard error of
the difference of two means.Method Detail |
---|
public final int[] compute()
int
array , call it equalMeans
indicating the size of the groups of means declared to be
equal. Value equalMeans[I] = J
indicates the I-th smallest mean and the next
J-1 larger means are declared equal. Value
equalMeans[I] = 0
indicates no group of means
starts with the I-th smallest mean.public void setAlpha(double alpha)
alpha
- A double
scalar containing the significance
level of test. alpha
must be in the
interval [0.01, 0.10]. Default: alpha = 0.01
|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |