You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dabest/_classes.py
+1-211Lines changed: 1 addition & 211 deletions
Original file line number
Diff line number
Diff line change
@@ -438,29 +438,7 @@ def __repr__(self):
438
438
@property
439
439
defmean_diff(self):
440
440
"""
441
-
Returns an :py:class:`EffectSizeDataFrame` for the mean difference, its confidence interval, and relevant statistics, for all comparisons as indicated via the `idx` and `paired` argument in `dabest.load()`.
442
-
443
-
Example
444
-
-------
445
-
>>> from scipy.stats import norm
446
-
>>> import pandas as pd
447
-
>>> import dabest
448
-
>>> control = norm.rvs(loc=0, size=30, random_state=12345)
449
-
>>> test = norm.rvs(loc=0.5, size=30, random_state=12345)
where :math:`\\overline{x}` is the mean for the group :math:`x`.
441
+
Returns an :py:class:`EffectSizeDataFrame` for the mean difference, its confidence interval, and relevant statistics, for all comparisons as indicated via the `idx` and `paired` argument in `dabest.load()`
464
442
465
443
"""
466
444
returnself.__mean_diff
@@ -471,45 +449,6 @@ def median_diff(self):
471
449
"""
472
450
Returns an :py:class:`EffectSizeDataFrame` for the median difference, its confidence interval, and relevant statistics, for all comparisons as indicated via the `idx` and `paired` argument in `dabest.load()`.
473
451
474
-
475
-
Example
476
-
-------
477
-
>>> from scipy.stats import norm
478
-
>>> import pandas as pd
479
-
>>> import dabest
480
-
>>> control = norm.rvs(loc=0, size=30, random_state=12345)
481
-
>>> test = norm.rvs(loc=0.5, size=30, random_state=12345)
Using median difference as the statistic in bootstrapping may result in a biased estimate and cause problems with BCa confidence intervals. Consider using mean difference instead.
508
-
509
-
When plotting, consider using percentile confidence intervals instead of BCa confidence intervals by specifying `ci_type = 'percentile'` in .plot().
510
-
511
-
For detailed information, please refer to `Issue 129 <https://github.com/ACCLAB/DABEST-python/issues/129>`_.
512
-
513
452
"""
514
453
returnself.__median_diff
515
454
@@ -518,59 +457,6 @@ def median_diff(self):
518
457
defcohens_d(self):
519
458
"""
520
459
Returns an :py:class:`EffectSizeDataFrame` for the standardized mean difference Cohen's `d`, its confidence interval, and relevant statistics, for all comparisons as indicated via the `idx` and `paired` argument in `dabest.load()`.
521
-
522
-
Example
523
-
-------
524
-
>>> from scipy.stats import norm
525
-
>>> import pandas as pd
526
-
>>> import dabest
527
-
>>> control = norm.rvs(loc=0, size=30, random_state=12345)
528
-
>>> test = norm.rvs(loc=0.5, size=30, random_state=12345)
Returns an :py:class:`EffectSizeDataFrame` for the standardized mean difference Cohen's `h`, its confidence interval, and relevant statistics, for all comparisons as indicated via the `idx` and `directional` argument in `dabest.load()`.
583
469
584
-
Example
585
-
-------
586
-
>>> from scipy.stats import randint
587
-
>>> import pandas as pd
588
-
>>> import dabest
589
-
>>> control = randint.rvs(0, 2, size=30, random_state=12345)
590
-
>>> test = randint.rvs(0, 2, size=30, random_state=12345)
Cohen's *h* uses the information of proportion in the control and test groups to calculate the distance between two proportions.
599
-
It can be used to describe the difference between two proportions as "small", "medium", or "large".
600
-
It can be used to determine if the difference between two proportions is "meaningful".
601
-
602
-
A directional Cohen's *h* is computed with the following equation:
603
-
604
-
.. math::
605
-
h = 2 * \\arcsin{\\sqrt{proportion_{Test}}} - 2 * \\arcsin{\\sqrt{proportion_{Control}}}
606
-
607
-
For a non-directional Cohen's *h*, the equation is:
608
-
609
-
.. math::
610
-
h = |2 * \\arcsin{\\sqrt{proportion_{Test}}} - 2 * \\arcsin{\\sqrt{proportion_{Control}}}|
611
-
612
-
References:
613
-
https://en.wikipedia.org/wiki/Cohen%27s_h
614
-
615
470
"""
616
471
returnself.__cohens_h
617
472
@@ -620,40 +475,6 @@ def cohens_h(self):
620
475
defhedges_g(self):
621
476
"""
622
477
Returns an :py:class:`EffectSizeDataFrame` for the standardized mean difference Hedges' `g`, its confidence interval, and relevant statistics, for all comparisons as indicated via the `idx` and `paired` argument in `dabest.load()`.
623
-
624
-
625
-
Example
626
-
-------
627
-
>>> from scipy.stats import norm
628
-
>>> import pandas as pd
629
-
>>> import dabest
630
-
>>> control = norm.rvs(loc=0, size=30, random_state=12345)
631
-
>>> test = norm.rvs(loc=0.5, size=30, random_state=12345)
Returns an :py:class:`EffectSizeDataFrame` for Cliff's delta, its confidence interval, and relevant statistics, for all comparisons as indicated via the `idx` and `paired` argument in `dabest.load()`.
666
-
667
-
668
-
Example
669
-
-------
670
-
>>> from scipy.stats import norm
671
-
>>> import pandas as pd
672
-
>>> import dabest
673
-
>>> control = norm.rvs(loc=0, size=30, random_state=12345)
674
-
>>> test = norm.rvs(loc=0.5, size=30, random_state=12345)
where :math:`\\#` denotes the number of times a value from the test sample exceeds (or is lesser than) values in the control sample.
691
-
692
-
Cliff's delta ranges from -1 to 1; it can also be thought of as a measure of the degree of overlap between the two samples. An attractive aspect of this effect size is that it does not make an assumptions about the underlying distributions that the samples were drawn from.
0 commit comments