Ejemplo n.º 1
0
 def __init__(self,
              test_description,
              test_short_name,
              stat_str,
              stat,
              pval,
              alpha=0.05):
     """Alpha is used to know if the pvalue is non-significant as a result
     of comparison correction or even without in cases it doesn't change the
     pvalue"""
     check_alpha(alpha)
     self.test_description = test_description
     self.test_short_name = test_short_name
     self.stat_str = stat_str
     self.stat_value = stat
     self.pvalue = pval
     self._corrected_significance = None
     self._correction_method = None
     self.alpha = alpha
Ejemplo n.º 2
0
 def alpha(self, alpha):
     check_alpha(alpha)
     self._alpha = alpha
Ejemplo n.º 3
0
 def test_check_alpha_negative(self):
     with self.assertRaises(ValueError):
         check_alpha(-0.2)
Ejemplo n.º 4
0
 def test_check_alpha_too_large(self):
     with self.assertRaises(ValueError):
         check_alpha(1.2)