Returns the significance for the given test (FISHER, CHI2, LLR).
(*args, **kwargs)
| 714 | |
| 715 | FISHER, CHI2, LLR = "fisher", "chi2", "llr" |
| 716 | def significance(*args, **kwargs): |
| 717 | """ Returns the significance for the given test (FISHER, CHI2, LLR). |
| 718 | """ |
| 719 | test = kwargs.pop("test", FISHER) |
| 720 | if test == FISHER: |
| 721 | return fisher_exact_test(*args, **kwargs) |
| 722 | if test == CHI2: |
| 723 | return pearson_chi_squared_test(*args, **kwargs)[1] |
| 724 | if test == LLR: |
| 725 | return pearson_log_likelihood_ratio(*args, **kwargs)[1] |
| 726 | |
| 727 | #--- PEARSON'S CHI-SQUARED TEST -------------------------------------------------------------------- |
| 728 |
nothing calls this directly
no test coverage detected
searching dependent graphs…