Skip to content

Commit adaf819

Browse files
committed
Fix repeated printing and alter documentation
1 parent 938646c commit adaf819

8 files changed

Lines changed: 11 additions & 10 deletions

File tree

dabest/_classes.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2707,10 +2707,6 @@ def __pre_calc(self):
27072707

27082708
reprs.append(text_repr)
27092709

2710-
varname = get_varname(self.__dabest_obj)
2711-
lastline = "To get the results of all valid statistical tests, " +\
2712-
"use `{}.{}.statistical_tests`".format(varname, self.__effect_size)
2713-
reprs.append(lastline)
27142710

27152711
reprs.insert(0, print_greeting())
27162712

@@ -2789,7 +2785,6 @@ def __pre_calc(self):
27892785
"use `{}.{}.statistical_tests`".format(varname, self.__effect_size)
27902786
reprs.append(lastline)
27912787

2792-
reprs.insert(0, print_greeting())
27932788

27942789
self.__for_print = "\n\n".join(reprs)
27952790

docs/source/_images/sankey_1.png

-398 Bytes
Loading

docs/source/_images/sankey_2.png

-742 Bytes
Loading

docs/source/_images/sankey_3.png

526 Bytes
Loading

docs/source/_images/sankey_4.png

423 Bytes
Loading

docs/source/_images/sankey_5.png

568 Bytes
Loading

docs/source/_images/sankey_6.png

-337 Bytes
Loading

docs/source/proportion-plot.rst

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,10 @@ the ``is_paired`` parameter is set to either ``baseline`` or ``sequential`` whe
319319
:linenos:
320320
321321
322-
two_groups_baseline = dabest.load(df, idx=("Control 1", "Test 1"),
323-
proportional=True, paired="baseline", id_col="ID")
324-
325-
two_groups_baseline.mean_diff.plot();
322+
two_groups_baseline = dabest.load(df, idx=("Control 1", "Test 1"),
323+
proportional=True, paired="baseline", id_col="ID")
324+
325+
two_groups_baseline.mean_diff.plot();
326326
327327
.. image:: _images/sankey_1.png
328328

@@ -332,7 +332,7 @@ The paired proportional plot also supports the ``float_contrast`` parameter, whi
332332
:linenos:
333333
334334
335-
two_groups_baseline.mean_diff.plot(float_contrast=False);
335+
two_groups_baseline.mean_diff.plot(float_contrast=False);
336336
337337
338338
@@ -369,6 +369,12 @@ Repeated measures is also supported in paired proportional plot, by changing the
369369
370370
.. image:: _images/sankey_4.png
371371

372+
From the above two images, we can see that the on both the observed value plot and delta plot, the pairs compared are different in terms of the paired settings.
373+
374+
If you want to specify the order of the groups, you can use the ``idx`` parameter in the ``.load()`` method.
375+
376+
For all the groups to be compared together, you can put all the groups in the ``idx`` parameter in the ``.load()`` method without subbrackets.
377+
372378
.. code-block:: python3
373379
:linenos:
374380

0 commit comments

Comments
 (0)