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
r2inr2_evalfrom the tabulated values in thepsytest.critval.datadirectory.- 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_evalis not a float or an iterable; ifalphais not a float; ifkmaxis not an integer; ifr0is not a float.ValueError – If
r2_evalis not between 0 and 1; ifalphais not between 0 and 1; ifkmaxis negative; ifr0is not between 0 and 1; if the critical value for the givenalphais not found in the table.