Accord.Statistics.Testing.TwoMatrixKappaTest.TwoMatrixKappaTest C# (CSharp) Method

TwoMatrixKappaTest() public method

Creates a new Two-Table Kappa test.
public TwoMatrixKappaTest ( GeneralConfusionMatrix matrix1, GeneralConfusionMatrix matrix2, double hypothesizedDifference, TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent ) : System
matrix1 Accord.Statistics.Analysis.GeneralConfusionMatrix The first contingency table to test.
matrix2 Accord.Statistics.Analysis.GeneralConfusionMatrix The second contingency table to test.
hypothesizedDifference double The hypothesized difference between the two Kappa values.
alternate TwoSampleHypothesis The alternative hypothesis (research hypothesis) to test.
return System
        public TwoMatrixKappaTest(GeneralConfusionMatrix matrix1, GeneralConfusionMatrix matrix2, double hypothesizedDifference = 0,
            TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent)
        {
            this.EstimatedValue1 = matrix1.Kappa;
            this.EstimatedValue2 = matrix2.Kappa;

            this.Variance1 = matrix1.Variance;
            this.Variance2 = matrix2.Variance;

            this.OverallVariance = Variance1 + Variance2;

            double diff = Math.Abs(EstimatedValue1 - EstimatedValue2);
            double stdError = Math.Sqrt(OverallVariance);

            Compute(diff, hypothesizedDifference, stdError, alternate);
        }

Same methods

TwoMatrixKappaTest::TwoMatrixKappaTest ( double kappa1, double var1, double kappa2, double var2, double hypothesizedDifference, TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent ) : System
TwoMatrixKappaTest