gov.sandia.cognition.statistics.method
Class HolmCorrection.Statistic

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.statistics.method.AbstractMultipleHypothesisComparison.Statistic
          extended by gov.sandia.cognition.statistics.method.AbstractPairwiseMultipleHypothesisComparison.Statistic
              extended by gov.sandia.cognition.statistics.method.HolmCorrection.Statistic
All Implemented Interfaces:
MultipleHypothesisComparison.Statistic, CloneableSerializable, Serializable, Cloneable
Enclosing class:
HolmCorrection

public static class HolmCorrection.Statistic
extends AbstractPairwiseMultipleHypothesisComparison.Statistic

Test statistic from the Shaffer static multiple-comparison test

See Also:
Serialized Form

Field Summary
protected  Matrix adjustedAlphas
          Matrix of adjusted alphas (p-value thresholds) for each comparison
 
Fields inherited from class gov.sandia.cognition.statistics.method.AbstractPairwiseMultipleHypothesisComparison.Statistic
pairwiseTestStatistics
 
Fields inherited from class gov.sandia.cognition.statistics.method.AbstractMultipleHypothesisComparison.Statistic
nullHypothesisProbabilities, testStatistics, treatmentCount, uncompensatedAlpha
 
Constructor Summary
HolmCorrection.Statistic(Collection<? extends Collection<? extends Number>> data, double uncompensatedAlpha, NullHypothesisEvaluator<Collection<? extends Number>> pairwiseTest)
          Creates a new instance of Statistic
 
Method Summary
 double getAdjustedAlpha(int i, int j)
          Gets the adjusted alpha (p-value threshold) for the given comparison
 
Methods inherited from class gov.sandia.cognition.statistics.method.AbstractPairwiseMultipleHypothesisComparison.Statistic
acceptNullHypothesis, clone, computePairwiseTestResults, getPairwiseTestStatistics
 
Methods inherited from class gov.sandia.cognition.statistics.method.AbstractMultipleHypothesisComparison.Statistic
getNullHypothesisProbability, getTestStatistic, getTreatmentCount, getUncompensatedAlpha, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

adjustedAlphas

protected Matrix adjustedAlphas
Matrix of adjusted alphas (p-value thresholds) for each comparison

Constructor Detail

HolmCorrection.Statistic

public HolmCorrection.Statistic(Collection<? extends Collection<? extends Number>> data,
                                double uncompensatedAlpha,
                                NullHypothesisEvaluator<Collection<? extends Number>> pairwiseTest)
Creates a new instance of Statistic

Parameters:
data - Data from each treatment to consider
uncompensatedAlpha - Uncompensated alpha (p-value threshold) for the multiple comparison test
pairwiseTest - Confidence test used for pair-wise null-hypothesis tests.
Method Detail

getAdjustedAlpha

public double getAdjustedAlpha(int i,
                               int j)
Description copied from class: AbstractPairwiseMultipleHypothesisComparison.Statistic
Gets the adjusted alpha (p-value threshold) for the given comparison

Specified by:
getAdjustedAlpha in class AbstractPairwiseMultipleHypothesisComparison.Statistic
Parameters:
i - First treatment to compare
j - Second treatment to compare
Returns:
Adjusted alpha (p-value threshold) for the given comparison