Skip to content

Commit 7c4da36

Browse files
committed
tutorial and various notebook updates
1 parent a6e0d0b commit 7c4da36

10 files changed

+164
-138
lines changed

nbs/01-getting_started.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"id": "e4c2e459",
4747
"metadata": {},
4848
"source": [
49-
"DABEST powers [estimationstats.com](estimationstats.com), allowing everyone access to high-quality estimation plots."
49+
"DABEST powers [estimationstats.com](https://www.estimationstats.com/#/), allowing everyone access to high-quality estimation plots."
5050
]
5151
},
5252
{

nbs/tutorials/01-basics.ipynb

+26-27
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"name": "stderr",
3535
"output_type": "stream",
3636
"text": [
37-
"Compiling numba functions: 100%|██████████| 11/11 [00:00<00:00, 60.60it/s]"
37+
"Compiling numba functions: 100%|██████████| 11/11 [00:00<00:00, 42.13it/s]"
3838
]
3939
},
4040
{
@@ -322,7 +322,7 @@
322322
"==================\n",
323323
" \n",
324324
"Good afternoon!\n",
325-
"The current time is Fri Mar 7 13:54:36 2025.\n",
325+
"The current time is Wed Mar 12 17:21:31 2025.\n",
326326
"\n",
327327
"Effect size(s) with 95% confidence intervals will be computed for:\n",
328328
"1. Test 1 minus Control 1\n",
@@ -365,7 +365,7 @@
365365
"==================\n",
366366
" \n",
367367
"Good afternoon!\n",
368-
"The current time is Fri Mar 7 13:54:36 2025.\n",
368+
"The current time is Wed Mar 12 17:21:31 2025.\n",
369369
"\n",
370370
"Effect size(s) with 90% confidence intervals will be computed for:\n",
371371
"1. Test 1 minus Control 1\n",
@@ -420,7 +420,7 @@
420420
"==================\n",
421421
" \n",
422422
"Good afternoon!\n",
423-
"The current time is Fri Mar 7 13:54:36 2025.\n",
423+
"The current time is Wed Mar 12 17:21:33 2025.\n",
424424
"\n",
425425
"The unpaired mean difference between Control 1 and Test 1 is 0.48 [95%CI 0.205, 0.774].\n",
426426
"The p-value of the two-sided permutation t-test is 0.001, calculated for legacy purposes only. \n",
@@ -454,7 +454,7 @@
454454
"\n",
455455
"Since v0.3.0, DABEST will report the p-value of the [non-parametric two-sided approximate permutation t-test](https://en.wikipedia.org/wiki/Resampling_(statistics)#Permutation_tests). This is also known as *the Monte Carlo permutation test*.\n",
456456
"\n",
457-
"For unpaired comparisons, the p-values and test statistics of [Welch's t test](https://en.wikipedia.org/wiki/Welch%27s_t-test>), \n",
457+
"For unpaired comparisons, the p-values and test statistics of [Welch's t test](https://en.wikipedia.org/wiki/Welch%27s_t-test), \n",
458458
"[Student's t test](https://en.wikipedia.org/wiki/Student%27s_t-test), \n",
459459
"and [Mann-Whitney U test](https://en.wikipedia.org/wiki/Mann%E2%80%93Whitney_U_test) can be found. For paired comparisons, the p-values and test statistics of the \n",
460460
"[paired Student's t](https://en.wikipedia.org/wiki/Student%27s_t-test#Paired_samples)\n",
@@ -547,7 +547,7 @@
547547
" <td>[-0.17259843762502491, 0.03802293852634886, -0...</td>\n",
548548
" <td>0.001</td>\n",
549549
" <td>5000</td>\n",
550-
" <td>[0.026356588154404337, 0.027102495439046997, 0...</td>\n",
550+
" <td>[0.26356588154404337, 0.2710249543904699, 0.26...</td>\n",
551551
" <td>0.002094</td>\n",
552552
" <td>-3.308806</td>\n",
553553
" <td>0.002057</td>\n",
@@ -584,7 +584,7 @@
584584
"0 0.001 5000 \n",
585585
"\n",
586586
" permutations_var pvalue_welch \\\n",
587-
"0 [0.026356588154404337, 0.027102495439046997, 0... 0.002094 \n",
587+
"0 [0.26356588154404337, 0.2710249543904699, 0.26... 0.002094 \n",
588588
"\n",
589589
" statistic_welch pvalue_students_t statistic_students_t \\\n",
590590
"0 -3.308806 0.002057 -3.308806 \n",
@@ -825,7 +825,7 @@
825825
"==================\n",
826826
" \n",
827827
"Good afternoon!\n",
828-
"The current time is Fri Mar 7 13:54:37 2025.\n",
828+
"The current time is Wed Mar 12 17:21:34 2025.\n",
829829
"\n",
830830
"The unpaired Hedges' g between Control 1 and Test 1 is 1.03 [95%CI 0.317, 1.62].\n",
831831
"The p-value of the two-sided permutation t-test is 0.001, calculated for legacy purposes only. \n",
@@ -933,7 +933,7 @@
933933
" <td>[-0.329508986559053, 0.07158401210924781, -0.2...</td>\n",
934934
" <td>0.001</td>\n",
935935
" <td>5000</td>\n",
936-
" <td>[0.026356588154404337, 0.027102495439046997, 0...</td>\n",
936+
" <td>[0.26356588154404337, 0.2710249543904699, 0.26...</td>\n",
937937
" <td>0.002094</td>\n",
938938
" <td>-3.308806</td>\n",
939939
" <td>0.002057</td>\n",
@@ -967,7 +967,7 @@
967967
"0 [-0.329508986559053, 0.07158401210924781, -0.2... 0.001 \n",
968968
"\n",
969969
" permutation_count permutations_var \\\n",
970-
"0 5000 [0.026356588154404337, 0.027102495439046997, 0... \n",
970+
"0 5000 [0.26356588154404337, 0.2710249543904699, 0.26... \n",
971971
"\n",
972972
" pvalue_welch statistic_welch pvalue_students_t statistic_students_t \\\n",
973973
"0 0.002094 -3.308806 0.002057 -3.308806 \n",
@@ -1126,7 +1126,7 @@
11261126
"\n",
11271127
"For more details on wide vs long or 'melted' data, refer to this\n",
11281128
"[Wikipedia article](https://en.wikipedia.org/wiki/Wide_and_narrow_data). The\n",
1129-
"[pandas documentation](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.melt.html)\n",
1129+
"[pandas documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.melt.html)\n",
11301130
"provides recipes for melting dataframes.\n"
11311131
]
11321132
},
@@ -1251,7 +1251,7 @@
12511251
"==================\n",
12521252
" \n",
12531253
"Good afternoon!\n",
1254-
"The current time is Fri Mar 7 13:54:38 2025.\n",
1254+
"The current time is Wed Mar 12 17:21:35 2025.\n",
12551255
"\n",
12561256
"Effect size(s) with 95% confidence intervals will be computed for:\n",
12571257
"1. Test 1 minus Control 1\n",
@@ -1284,24 +1284,23 @@
12841284
"source": [
12851285
"The ``dabest`` package implements a range of estimation plot\n",
12861286
"designs aimed at depicting common experimental designs:\n",
1287-
"1. Two-Group\n",
1288-
"2. Multi Two-Group\n",
1289-
"3. Shared Control (Unpaired) and Repeated Measures (Paired)\n",
1290-
"4. Multi-Groups\n",
1291-
"5. Proportion plots\n",
1292-
"6. Mini-Meta\n",
1293-
"7. Delta-Delta\n",
1294-
"8. Forest Plot\n",
1287+
"\n",
1288+
"1. [Two-Group](02-two_group.html)\n",
1289+
" \n",
1290+
"2. [Shared Control (Unpaired) and Repeated Measures (Paired)](03-shared_control_and_repeated_measures.html)\n",
1291+
" \n",
1292+
"3. [Proportion plots](04-proportion_plot.html)\n",
1293+
" \n",
1294+
"4. [Mini-Meta](05-mini_meta.html)\n",
1295+
" \n",
1296+
"5. [Delta-Delta](06-delta_delta.html)\n",
12951297
" \n",
1296-
"In addition, as of Dabest **v2025.03.14**, we introduce a new plotting orientation: **horizontal plots**. \n",
1298+
"6. [Forest Plot](07-forest_plot.html)\n",
1299+
" \n",
1300+
"In addition, as of Dabest **v2025.03.14**, we introduce a new plotting orientation: **[horizontal plots](08-horizontal_plot.html)**. \n",
12971301
"\n",
1298-
"Lastly, we have a whole tutorial page for making aesthetic changes to dabest plots.\n"
1302+
"Lastly, we have a whole tutorial page for making [aesthetic changes to dabest plots](09-plot_aesthetics.html).\n"
12991303
]
1300-
},
1301-
{
1302-
"cell_type": "markdown",
1303-
"metadata": {},
1304-
"source": []
13051304
}
13061305
],
13071306
"metadata": {

nbs/tutorials/02-two_group.ipynb

+10-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"name": "stderr",
3535
"output_type": "stream",
3636
"text": [
37-
"Compiling numba functions: 100%|██████████| 11/11 [00:03<00:00, 2.82it/s]"
37+
"Compiling numba functions: 100%|██████████| 11/11 [00:00<00:00, 71.84it/s]"
3838
]
3939
},
4040
{
@@ -275,7 +275,9 @@
275275
"We can achieve this by supplying the dataframe to `dabest.load()`. Additionally, we must provide the groups to be compared in the `idx` argument as a tuple or list.\n",
276276
"\n",
277277
"For this tutorial, we will create two separate analyses: \n",
278-
"- A singular two-group comparison between Control 1 and Test 1\n",
278+
"\n",
279+
"- A singular two-group comparison between Control 1 and Test 1.\n",
280+
" \n",
279281
"- A multi two-group comparison between Control 1 and Test 1, and between Control 2 and Test 2. \n",
280282
" \n",
281283
"The **multi two-group estimation plot** tiles two or more Cumming plots\n",
@@ -299,9 +301,9 @@
299301
"source": [
300302
"In addition, we can specify the `paired` argument to indicate paired data.\n",
301303
"\n",
302-
" `paired` can be set as 'baseline' or 'sequential' or left as None (unpaired). \n",
304+
" `paired` can be set as `'baseline'` or `'sequential'` or left as `None` (unpaired). \n",
303305
" \n",
304-
" **Note: For two-group, both 'baseline' and 'sequential' are equivalent.**"
306+
" **Note: For two-group, both `'baseline'` and `'sequential'` are equivalent.**"
305307
]
306308
},
307309
{
@@ -336,7 +338,7 @@
336338
"==================\n",
337339
" \n",
338340
"Good afternoon!\n",
339-
"The current time is Fri Mar 7 13:54:22 2025.\n",
341+
"The current time is Wed Mar 12 17:21:55 2025.\n",
340342
"\n",
341343
"The unpaired mean difference between Control 1 and Test 1 is 0.48 [95%CI 0.205, 0.774].\n",
342344
"The p-value of the two-sided permutation t-test is 0.001, calculated for legacy purposes only. \n",
@@ -539,7 +541,9 @@
539541
"\n",
540542
"The lower axes in the Cumming plot is effectively a [forest\n",
541543
"plot](https://en.wikipedia.org/wiki/Forest_plot), commonly used in\n",
542-
"meta-analyses to aggregate and to compare data from different experiments."
544+
"meta-analyses to aggregate and to compare data from different experiments.\n",
545+
"\n",
546+
"**Note: If you're interested in just plotting the contrast ax (the violin plots), you may be interested in the new [forest plot](07-forest_plot.html) feature added in v2025.03.14!**"
543547
]
544548
},
545549
{

nbs/tutorials/03-shared_control_and_repeated_measures.ipynb

+10-10
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"name": "stderr",
4848
"output_type": "stream",
4949
"text": [
50-
"Compiling numba functions: 100%|██████████| 11/11 [00:00<00:00, 77.31it/s]"
50+
"Compiling numba functions: 100%|██████████| 11/11 [00:00<00:00, 35.80it/s]"
5151
]
5252
},
5353
{
@@ -152,7 +152,7 @@
152152
"==================\n",
153153
" \n",
154154
"Good afternoon!\n",
155-
"The current time is Fri Mar 7 13:55:53 2025.\n",
155+
"The current time is Wed Mar 12 17:24:49 2025.\n",
156156
"\n",
157157
"Effect size(s) with 95% confidence intervals will be computed for:\n",
158158
"1. Test 1 minus Control 1\n",
@@ -190,7 +190,7 @@
190190
"==================\n",
191191
" \n",
192192
"Good afternoon!\n",
193-
"The current time is Fri Mar 7 13:55:54 2025.\n",
193+
"The current time is Wed Mar 12 17:24:50 2025.\n",
194194
"\n",
195195
"The unpaired mean difference between Control 1 and Test 1 is 0.48 [95%CI 0.205, 0.774].\n",
196196
"The p-value of the two-sided permutation t-test is 0.001, calculated for legacy purposes only. \n",
@@ -266,7 +266,7 @@
266266
"==================\n",
267267
" \n",
268268
"Good afternoon!\n",
269-
"The current time is Fri Mar 7 13:55:54 2025.\n",
269+
"The current time is Wed Mar 12 17:24:51 2025.\n",
270270
"\n",
271271
"Effect size(s) with 95% confidence intervals will be computed for:\n",
272272
"1. Test 1 minus Control 1\n",
@@ -304,7 +304,7 @@
304304
"==================\n",
305305
" \n",
306306
"Good afternoon!\n",
307-
"The current time is Fri Mar 7 13:55:55 2025.\n",
307+
"The current time is Wed Mar 12 17:24:52 2025.\n",
308308
"\n",
309309
"The unpaired mean difference between Control 1 and Test 1 is 0.48 [95%CI 0.205, 0.774].\n",
310310
"The p-value of the two-sided permutation t-test is 0.001, calculated for legacy purposes only. \n",
@@ -372,7 +372,7 @@
372372
"cell_type": "markdown",
373373
"metadata": {},
374374
"source": [
375-
"DABEST version 2023.02.14 expands the repertoire of plots for experiments with repeated-measures designs. DABEST now allows the visualization of paired experiments with one control and multiple test \n",
375+
"DABEST **v2023.02.14** expands the repertoire of plots for experiments with repeated-measures designs. DABEST now allows the visualization of paired experiments with one control and multiple test \n",
376376
"groups, as well as repeated measurements of the same group. This is an improved version of paired data plotting in previous versions, which only supported computations involving one test group and one control group.\n",
377377
"\n",
378378
"The repeated-measures function supports the calculation of effect sizes for\n",
@@ -400,7 +400,7 @@
400400
"==================\n",
401401
" \n",
402402
"Good afternoon!\n",
403-
"The current time is Fri Mar 7 13:55:55 2025.\n",
403+
"The current time is Wed Mar 12 17:24:52 2025.\n",
404404
"\n",
405405
"Paired effect size(s) for repeated measures against baseline \n",
406406
"with 95% confidence intervals will be computed for:\n",
@@ -434,7 +434,7 @@
434434
"==================\n",
435435
" \n",
436436
"Good afternoon!\n",
437-
"The current time is Fri Mar 7 13:55:56 2025.\n",
437+
"The current time is Wed Mar 12 17:24:53 2025.\n",
438438
"\n",
439439
"The paired mean difference for repeated measures against baseline \n",
440440
"between Control 1 and Test 1 is 0.48 [95%CI 0.241, 0.749].\n",
@@ -497,7 +497,7 @@
497497
"==================\n",
498498
" \n",
499499
"Good afternoon!\n",
500-
"The current time is Fri Mar 7 13:55:56 2025.\n",
500+
"The current time is Wed Mar 12 17:24:53 2025.\n",
501501
"\n",
502502
"Paired effect size(s) for the sequential design of repeated-measures experiment \n",
503503
"with 95% confidence intervals will be computed for:\n",
@@ -531,7 +531,7 @@
531531
"==================\n",
532532
" \n",
533533
"Good afternoon!\n",
534-
"The current time is Fri Mar 7 13:55:57 2025.\n",
534+
"The current time is Wed Mar 12 17:24:54 2025.\n",
535535
"\n",
536536
"The paired mean difference for the sequential design of repeated-measures experiment \n",
537537
"between Control 1 and Test 1 is 0.48 [95%CI 0.241, 0.749].\n",

0 commit comments

Comments
 (0)