Example #1
0
        [Test] public void TestPValue()
        {
            var p = Significance.PValue(1046, 0.42, 0.5);

            TestHelpers.AlmostEqual(1 / 9000000, p);
        }
Example #2
0
        [Test] public void TestPValueTwoSided()
        {
            var p = Significance.PValue(1000, 0.576, 0.5, two_sided: true);

            TestHelpers.AlmostEqual(1 / 663000, p);
        }