Make nan_policy defaults consistent
Should default to 'warn' always
This commit is contained in:
parent
e5833796af
commit
ed67a4a610
@ -217,7 +217,7 @@ class FTestResult:
|
||||
|
||||
return 'F({:.0f}, {:.0f}) = {:.2f}; p {}'.format(self.dof1, self.dof2, self.statistic, fmt_p(self.pvalue, PValueStyle.RELATION))
|
||||
|
||||
def anova_oneway(df, dep, ind, *, nan_policy='omit'):
|
||||
def anova_oneway(df, dep, ind, *, nan_policy='warn'):
|
||||
"""
|
||||
Perform one-way ANOVA
|
||||
|
||||
@ -269,7 +269,7 @@ def anova_oneway(df, dep, ind, *, nan_policy='omit'):
|
||||
|
||||
class MannWhitneyResult:
|
||||
"""
|
||||
Result of a Mann-Whitney *U* test
|
||||
Result of a Mann–Whitney *U* test
|
||||
|
||||
See :func:`yli.mannwhitney`.
|
||||
"""
|
||||
@ -395,7 +395,7 @@ class BrunnerMunzelResult:
|
||||
|
||||
def mannwhitney(df, dep, ind, *, nan_policy='warn', brunnermunzel=True, use_continuity=False, alternative='two-sided', method='auto'):
|
||||
"""
|
||||
Perform a Mann-Whitney *U* test
|
||||
Perform a Mann–Whitney *U* test
|
||||
|
||||
By default, this function performs a Brunner–Munzel test if the Mann–Whitney test is significant.
|
||||
If the Mann–Whitney test is significant but the Brunner–Munzel test is not, a warning is raised.
|
||||
|
Loading…
Reference in New Issue
Block a user