psytest.critval package#
Submodules#
- psytest.critval.critval module
- psytest.critval.critval_parameters module
Module contents#
psytest.critval#
Module to handling pre-calculated critical values for the psytest.bubbles.PSYBubbles
class. The critical values are stored in the data/
directory of the package and are used to determine the significance of the test statistics calculated by the PSYBubbles
class.
- psytest.critval.critval_tabulated(r2_eval: float | Iterable[float], kmax: int, r0: float, alpha: float = 0.05) ndarray[tuple[int, ...], dtype[float64]] | float [source]#
Returns the critical values for all
r2
inr2_eval
from the tabulated values in thepsytest.critval.data
directory.- Parameters:
- Returns:
critval_table – The critical values for the given
r2_eval
(if single) or an array of critical values.- Return type:
NDArray[float64] | float
- Raises:
TypeError – If
r2_eval
is not a float or an iterable; ifalpha
is not a float; ifkmax
is not an integer; ifr0
is not a float.ValueError – If
r2_eval
is not between 0 and 1; ifalpha
is not between 0 and 1; ifkmax
is negative; ifr0
is not between 0 and 1; if the critical value for the givenalpha
is not found in the table.