Skip to content

Commit 1e4172e

Browse files
committed
Fixing paired vs unpaired tests.
1 parent 6bebb34 commit 1e4172e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

dabest/_classes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,10 +662,14 @@ def __init__(self, control, test, effect_size,
662662
# Likelihood Q-Ratio test:
663663
# Assumes a gross-error model of distributions
664664
try:
665-
lqrt_ratio = lqrt.lqrtest_rel(control, test)
665+
if self.__is_paired:
666+
lqrt_ratio = lqrt.lqrtest_rel(control, test)
667+
else:
668+
lqrt_ratio = lqrt.lqrtest_ind(control, test)
666669
self.__pvalue_lqrt = lqrt_ratio.pvalue
667670
self.__statistic_lqrt = lqrt_ratio.statistic
668671
except ImportError:
672+
# did not install necessary library to run robust lqrt statistic
669673
# warnings.warn("To get")
670674
pass
671675

0 commit comments

Comments
 (0)