gov.sandia.cognition.statistics.method
Class AdjustedPValueStatistic

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.AdjustedPValueStatistic
All Implemented Interfaces:
MultipleHypothesisComparison.Statistic, CloneableSerializable, Serializable, Cloneable

@PublicationReference(author="Wikipedia",
                      title="Bonferroni correction",
                      type=WebPage,
                      year=2011,
                      url="http://en.wikipedia.org/wiki/Bonferroni_correction")
public class AdjustedPValueStatistic
extends AbstractPairwiseMultipleHypothesisComparison.Statistic

A multiple-comparison statistic derived from a single adjusted p-value.

Since:
3.3.0
Author:
Kevin R. Dixon
See Also:
Serialized Form

Field Summary
protected  double adjustedAlpha
          Adjusted alpha term to account for multiple comparisons
 
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
AdjustedPValueStatistic(Collection<? extends Collection<? extends Number>> data, double uncompensatedAlpha, double adjustedAlpha, NullHypothesisEvaluator<Collection<? extends Number>> pairwiseTest)
          Creates a new instance of StudentizedMultipleComparisonStatistic
 
Method Summary
 AdjustedPValueStatistic clone()
          This makes public the clone method on the Object class and removes the exception that it throws.
 double getAdjustedAlpha()
          Getter for adjustedAlpha
 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, 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

adjustedAlpha

protected double adjustedAlpha
Adjusted alpha term to account for multiple comparisons

Constructor Detail

AdjustedPValueStatistic

public AdjustedPValueStatistic(Collection<? extends Collection<? extends Number>> data,
                               double uncompensatedAlpha,
                               double adjustedAlpha,
                               NullHypothesisEvaluator<Collection<? extends Number>> pairwiseTest)
Creates a new instance of StudentizedMultipleComparisonStatistic

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

clone

public AdjustedPValueStatistic clone()
Description copied from class: AbstractCloneableSerializable
This makes public the clone method on the Object class and removes the exception that it throws. Its default behavior is to automatically create a clone of the exact type of object that the clone is called on and to copy all primitives but to keep all references, which means it is a shallow copy. Extensions of this class may want to override this method (but call super.clone() to implement a "smart copy". That is, to target the most common use case for creating a copy of the object. Because of the default behavior being a shallow copy, extending classes only need to handle fields that need to have a deeper copy (or those that need to be reset). Some of the methods in ObjectUtil may be helpful in implementing a custom clone method. Note: The contract of this method is that you must use super.clone() as the basis for your implementation.

Specified by:
clone in interface CloneableSerializable
Overrides:
clone in class AbstractPairwiseMultipleHypothesisComparison.Statistic
Returns:
A clone of this object.

getAdjustedAlpha

public double getAdjustedAlpha()
Getter for adjustedAlpha

Returns:
Adjusted alpha term to account for multiple comparisons

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