Click or drag to resize
Accord.NET (logo)

StuartMaxwellTest Class

Stuart-Maxwell test of homogeneity for K x K contingency tables.
Inheritance Hierarchy
SystemObject
  Accord.Statistics.TestingHypothesisTestChiSquareDistribution
    Accord.Statistics.TestingChiSquareTest
      Accord.Statistics.TestingStuartMaxwellTest

Namespace:  Accord.Statistics.Testing
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
[SerializableAttribute]
public class StuartMaxwellTest : ChiSquareTest
Request Example View Source

The StuartMaxwellTest type exposes the following members.

Constructors
  NameDescription
Public methodStuartMaxwellTest
Creates a new Stuart-Maxwell test.
Top
Properties
  NameDescription
Public propertyCovariance
Gets the covariance matrix S used in the test calculations.
Public propertyCriticalValue
Gets the critical value for the current significance level.
(Inherited from HypothesisTestTDistribution.)
Public propertyDegreesOfFreedom
Gets the degrees of freedom for the Chi-Square distribution.
(Inherited from ChiSquareTest.)
Public propertyDelta
Gets the delta vector d used in the test calculations.
Public propertyPrecision
Gets the inverse covariance matrix S^-1 used in the calculations.
Public propertyPValue
Gets the P-value associated with this test.
(Inherited from HypothesisTestTDistribution.)
Public propertySignificant
Gets whether the null hypothesis should be rejected.
(Inherited from HypothesisTestTDistribution.)
Public propertySize
Gets the significance level for the test. Default value is 0.05 (5%).
(Inherited from HypothesisTestTDistribution.)
Public propertyStatistic
Gets the test statistic.
(Inherited from HypothesisTestTDistribution.)
Public propertyStatisticDistribution
Gets the distribution associated with the test statistic.
(Inherited from HypothesisTestTDistribution.)
Public propertyTail
Gets the test type.
(Inherited from HypothesisTestTDistribution.)
Top
Methods
  NameDescription
Protected methodCompute
Computes the Chi-Square Test.
(Inherited from ChiSquareTest.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnSizeChanged
Called whenever the test significance level changes.
(Inherited from HypothesisTestTDistribution.)
Public methodPValueToStatistic
Converts a given p-value to a test statistic.
(Inherited from ChiSquareTest.)
Public methodStatisticToPValue
Converts a given test statistic to a p-value.
(Inherited from ChiSquareTest.)
Public methodToString
Converts the numeric P-Value of this test to its equivalent string representation.
(Inherited from HypothesisTestTDistribution.)
Public methodToString(String, IFormatProvider)
Converts the numeric P-Value of this test to its equivalent string representation.
(Inherited from HypothesisTestTDistribution.)
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
Remarks

The Stuart-Maxwell test is a generalization of McNemar's test for multiple categories.

This is a Chi-square kind of test.

References:

  • Uebersax, John (2006). "McNemar Tests of Marginal Homogeneity". Available on: http://www.john-uebersax.com/stat/mcnemar.htm
  • Sun, Xuezheng; Yang, Zhao (2008). "Generalized McNemar's Test for Homogeneity of the Marginal Distributions". Available on: http://www2.sas.com/proceedings/forum2008/382-2008.pdf

See Also