public TwoMatrixKappaTest ( |
||
matrix1 | The first contingency table to test. | |
matrix2 | 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);
}
TwoMatrixKappaTest::TwoMatrixKappaTest ( double kappa1, double var1, double kappa2, double var2, double hypothesizedDifference, TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent ) : System |