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
raiseTypeError("The `effect_size` argument must be a string and please choose from the following effect sizes: `mean_diff`, `hedges_g`, or `delta_g`.")
169
+
raiseTypeError("The `effect_size` argument must be a string and please choose from the following effect sizes: 'mean_diff', 'median_diff', 'cohens_d', 'cohens_h', 'cliffs_delta', 'hedges_g', 'delta_g'.")
" if not isinstance(effect_size, str) or effect_size not in effect_size_options:\n",
229
-
" raise TypeError(\"The `effect_size` argument must be a string and please choose from the following effect sizes: `mean_diff`, `hedges_g`, or `delta_g`.\")\n",
229
+
" raise TypeError(\"The `effect_size` argument must be a string and please choose from the following effect sizes: 'mean_diff', 'median_diff', 'cohens_d', 'cohens_h', 'cliffs_delta', 'hedges_g', 'delta_g'.\")\n",
230
230
" if data[0].is_mini_meta and effect_size != 'mean_diff':\n",
231
231
" raise ValueError(\"The `effect_size` argument must be `mean_diff` for mini-meta analyses.\")\n",
232
232
" if data[0].delta2 and effect_size not in ['mean_diff', 'hedges_g', 'delta_g']:\n",
Copy file name to clipboardExpand all lines: nbs/read_me.ipynb
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -33,45 +33,45 @@
33
33
"\n",
34
34
"1. **Python 3.13 Support**: DABEST now supports Python 3.10—3.13.\n",
35
35
"\n",
36
-
"2. **Horizontal Plots**: Users can now create horizontal layout plots, providing compact data visualization. This can be achieved by setting `horizontal=True` in the `plot()` method. See the [Horizontal Plots](../tutorials/08-horizontal_plot.html) tutorial for more details.\n",
36
+
"2. **Horizontal Plots**: Users can now create horizontal layout plots, providing compact data visualization. This can be achieved by setting `horizontal=True` in the `.plot()` method. See the [Horizontal Plots tutorial](../tutorials/08-horizontal_plot.html) for more details.\n",
37
37
"\n",
38
-
"3. **Forest Plots**: Forest plots provide a simple and intuitive way to visualize many delta-delta (or delta *g*), mini-meta, or regular delta effect sizes at once from multiple different dabest objects without presenting the raw data. See the [Forest Plots](../tutorials/07-forest_plot.html) tutorial for more details.\n",
38
+
"3. **Forest Plots**: Forest plots provide a simple and intuitive way to visualize many delta-delta (or delta *g*), mini-meta, or regular delta effect sizes at once from multiple different dabest objects without presenting the raw data. See the [Forest Plots tutorial](../tutorials/07-forest_plot.html) for more details.\n",
39
39
"\n",
40
-
"4. **Gridkey**: Users can now represent experimental labels in a ‘gridkey’ table. This can be accessed with the `gridkey` parameter in the `plot()` method. See the gridkey section in the [Plot Aesthetics](../tutorials/09-plot_aesthetics.html) tutorial for more details.\n",
40
+
"4. **Gridkey**: Users can now represent experimental labels in a ‘gridkey’ table. This can be accessed with the `gridkey` parameter in the `.plot()` method. See the gridkey section in the [Plot Aesthetics tutorial](../tutorials/09-plot_aesthetics.html) for more details.\n",
41
41
"\n",
42
42
"5. **Other Visualization Improvements**:\n",
43
43
" - **Raw, Contrast, and Summary bars**: Our visualization package now includes three types of customizable bars to enhance data interpretation:\n",
44
44
" - **Raw Bars**: Colored rectangles that extend from the zero line to the mean of each group's raw data. These bars visually highlight the central tendency of the raw data.\n",
45
45
" - **Contrast Bars**: Similar to raw bars, these highlight the effect size difference between two groups (typically test and control) in the contrast axis. They provide a visual representation of the differences between groups.\n",
46
-
" - **Summary Bars**: Optional horizontal bars that can be added to emphasize a specific effect size across the entire contrast axis. Unlike raw and contrast bars, these span horizontally and are not displayed by default.\n",
46
+
" - **Summary Bars**: Optional bars that can be added to emphasize a specific effect size across the entire contrast axis. Unlike raw and contrast bars, these span horizontally (or vertically if `horizontal=True`) and are not displayed by default.\n",
47
47
"\n",
48
-
"By default, plots show raw and contrast bars. Users can customize these bars and add summary bars as needed. For detailed customization instructions, please refer to the [Plot Aesthetics](../tutorials/09-plot_aesthetics.html) tutorial.\n",
48
+
"Raw and contrast bars are shown by default. Users can customize these bars and add summary bars as needed. For detailed customization instructions, please refer to the [Plot Aesthetics tutorial](../tutorials/09-plot_aesthetics.html).\n",
49
49
"\n",
50
50
" - **Tighter spacing in Delta-Delta and Mini-Meta Plots**: We have adjusted the spacing of delta-delta and mini-meta plots to reduce whitespace. The new format brings the overall effect size closer to the two-groups effect sizes. In addition, delta-delta plots now have a gap in the zero line to separate the delta-delta from the ∆ effect sizes.\n",
51
51
"\n",
52
52
" - **Delta-Delta Effect Sizes for Proportion Plots**: In addition to continuous data, delta-delta plots now support binary data (proportions). This means that 2-way designs for binary outcomes can be analyzed with DABEST.\n",
53
53
"\n",
54
-
" - **Proportion Plots Sample Sizes**: The sample size of each binary option for each group can now be displayed. These can be toggled on or off via the `prop_sample_counts` parameter.\n",
54
+
" - **Proportion Plots Sample Sizes**: The sample size of each binary option for each group can now be displayed. These can be toggled on/off via the `prop_sample_counts` parameter.\n",
55
55
"\n",
56
-
" - **Effect Size Lines for Paired Plots**: Along with lines connecting paired observed values, the paired plots now also display lines linking the effect sizes within a group in the contrast axes. These lines can be toggled on or off via the `contrast_paired_lines` parameter.\n",
56
+
" - **Effect Size Lines for Paired Plots**: Along with lines connecting paired observed values, the paired plots now also display lines linking the effect sizes within a group in the contrast axes. These lines can be toggled on/off via the `contrast_paired_lines` parameter.\n",
57
57
"\n",
58
-
" - **Baseline Error Curves**: To represent the baseline/control group in the contrast axes, it is now possible to plot the baseline dot and the baseline error curve. The dot is shown by default, while the curve can be toggled on/off by the user (via the `show_baseline_ec` parameter). This dot helps make it clear where the baseline comes from i.e. the control minus itself. The baseline error curve can be used to show that the baseline itself is an estimate inferred from the observed values of the control data. \n",
58
+
" - **Baseline Error Curves**: To represent the baseline/control group in the contrast axes, it is now possible to plot the baseline dot and the baseline error curve. The dot is shown by default, while the curve can be toggled on/off via the `show_baseline_ec` parameter. This dot helps make it clear where the baseline comes from i.e. the control minus itself. The baseline error curve can be used to show that the baseline itself is an estimate inferred from the observed values of the control data. \n",
59
59
"\n",
60
-
" - **Delta Text**: Effect-size deltas (e.g. mean differences) are now displayed as numerals next to their respective effect size. This can be toggled on or off via the `delta_text` parameter.\n",
60
+
" - **Delta Text**: Effect-size deltas (e.g. mean differences) are now displayed as numerals next to their respective effect size. This can be toggled on/off via the `delta_text` parameter.\n",
61
61
"\n",
62
-
" - **Empty Circle Color Palette**: A new swarmplot color palette modification is available for unpaired plots via the `empty_circle` parameter in the `plot()` method. This option modifies the two-group swarmplots to have empty circles for the control group and filled circles for the experimental group.\n",
62
+
" - **Empty Circle Color Palette**: A new swarmplot color palette modification is available for unpaired plots via the `empty_circle` parameter in the `.plot()` method. This option modifies the two-group swarmplots to have empty circles for the control group and filled circles for the experimental group.\n",
" - **Numba for Speed Improvements**: We have added [Numba](https://numba.pydata.org/) to speed up the various calculations in DABEST. Precalculations will be performed during import, which will help speed up the subsequent loading and plotting of data.\n",
66
66
"\n",
67
67
" - **Terminology/Naming Updates**: During the refactoring of the code, we have made several updates to the documentation and terminology to improve clarity and consistency. For example:\n",
68
-
" - Many plot arguments have been adjusted to bring more clarity and consistency in naming. Arguments relating to the rawdata plot axis will now be typically referred to with `raw` while arguments relating to the contrast axis will be referred to with `contrast`. For example, `raw_label` replaces `swarm_label` and `bar_label`. The various kwargs relating to each different type of plot (e.g., `swarmplot_kwargs`) remain unchanged.\n",
68
+
" - Plot arguments have been adjusted to bring more clarity and consistency in naming. Arguments relating to the rawdata plot axis will now be typically referred to with `raw` while arguments relating to the contrast axis will be referred to with `contrast`. For example, `raw_label` replaces `swarm_label` and `bar_label`. The various kwargs relating to each different type of plot (e.g., `swarmplot_kwargs`) remain unchanged.\n",
69
+
"\n",
69
70
" - The method to utilise the Delta *g* effect size is now via the .hedges_g.plot() method rather than creating a whole new Delta_g object as before. The functionality remains the same, it plots hedges_g effect sizes and then the Delta *g* effect size alongside these (if a delta-delta experiment was loaded correctly).\n",
70
71
"\n",
71
72
" - **Updated Tutorial Pages**: We have updated the tutorial pages to reflect the new features and changes. The tutorial pages are now more comprehensive and (hopefully!) more intuitive!\n",
72
73
"\n",
73
-
" - **Results Dataframe for Delta-Delta and Mini-Meta Plots**: A results dataframe can now be extracted for both the delta-delta and mini-meta effect size data (similar to the results dataframe for the regular effect sizes). These can be found via the `.results` attribute of the `.delta_delta` or `.mini_meta` object.\n",
74
-
"\n"
74
+
" - **Results Dataframe for Delta-Delta and Mini-Meta Plots**: A results dataframe can now be extracted for both the delta-delta and mini-meta effect size data (similar to the results dataframe for the regular effect sizes). These can be found via the `.results` attribute of the `.delta_delta` or `.mini_meta` object."
0 commit comments