AutoStatLib 0.2.16__tar.gz → 0.2.18__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of AutoStatLib might be problematic. Click here for more details.
- {autostatlib-0.2.16/src/AutoStatLib.egg-info → autostatlib-0.2.18}/PKG-INFO +19 -19
- {autostatlib-0.2.16 → autostatlib-0.2.18}/README.md +18 -18
- {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/StatPlots.py +8 -5
- {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/_version.py +1 -1
- {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/helpers.py +10 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/statistical_tests.py +6 -6
- {autostatlib-0.2.16 → autostatlib-0.2.18/src/AutoStatLib.egg-info}/PKG-INFO +19 -19
- {autostatlib-0.2.16 → autostatlib-0.2.18}/LICENSE +0 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/MANIFEST.in +0 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/pyproject.toml +0 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/requirements.txt +0 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/setup.cfg +0 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/AutoStatLib.py +0 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/__init__.py +0 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/__main__.py +0 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/normality_tests.py +0 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/text_formatting.py +0 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib.egg-info/SOURCES.txt +0 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib.egg-info/dependency_links.txt +0 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib.egg-info/requires.txt +0 -0
- {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AutoStatLib
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.18
|
|
4
4
|
Summary: AutoStatLib - a simple statistical analysis tool
|
|
5
5
|
Author: Stemonitis, SciWare LLC
|
|
6
6
|
Author-email: konung-yaropolk <yaropolk1995@gmail.com>
|
|
@@ -673,25 +673,25 @@ If errors occured, *GetResult()* returns an empty dictionary
|
|
|
673
673
|
-- add independent t-test with Welch correction (do not assume equal SDs in groups)
|
|
674
674
|
-- add correlation test, correlation diagram
|
|
675
675
|
-- add linear regression, regression diagram
|
|
676
|
-
-- add QQ plot
|
|
677
|
-
-- n-sample tests: add onetail option
|
|
676
|
+
-- add QQ plot
|
|
677
|
+
-- n-sample tests: add onetail option
|
|
678
678
|
|
|
679
679
|
✅ done -- detailed normality test results
|
|
680
680
|
✅ done -- added posthoc: Kruskal-Wallis Dunn's multiple comparisons
|
|
681
681
|
|
|
682
|
-
tests check:
|
|
683
|
-
1-sample:
|
|
684
|
-
--Wilcoxon 2,1 tails
|
|
685
|
-
--t-tests 2,1 tails
|
|
686
|
-
|
|
687
|
-
2-sample:
|
|
688
|
-
--Wilcoxon 2,1 tails
|
|
689
|
-
--Mann-whitney 2,1 tails
|
|
690
|
-
--t-tests 2,1 tails
|
|
691
|
-
|
|
692
|
-
n-sample:
|
|
693
|
-
--Kruskal-Wallis 2 tail
|
|
694
|
-
--Dunn's multiple comparisons
|
|
695
|
-
--Friedman 2 tail
|
|
696
|
-
--one-way ANOWA 2 tail
|
|
697
|
-
--Tukey`s multiple comparisons
|
|
682
|
+
tests check:
|
|
683
|
+
1-sample:
|
|
684
|
+
✅ok --Wilcoxon 2,1 tails
|
|
685
|
+
✅ok --t-tests 2,1 tails
|
|
686
|
+
|
|
687
|
+
2-sample:
|
|
688
|
+
✅ok --Wilcoxon 2,1 tails
|
|
689
|
+
✅ok --Mann-whitney 2,1 tails
|
|
690
|
+
✅ok --t-tests 2,1 tails
|
|
691
|
+
|
|
692
|
+
n-sample:
|
|
693
|
+
✅ok --Kruskal-Wallis 2 tail
|
|
694
|
+
✅ok --Dunn's multiple comparisons
|
|
695
|
+
✅ok --Friedman 2 tail
|
|
696
|
+
✅ok --one-way ANOWA 2 tail
|
|
697
|
+
✅ok --Tukey`s multiple comparisons
|
|
@@ -133,25 +133,25 @@ If errors occured, *GetResult()* returns an empty dictionary
|
|
|
133
133
|
-- add independent t-test with Welch correction (do not assume equal SDs in groups)
|
|
134
134
|
-- add correlation test, correlation diagram
|
|
135
135
|
-- add linear regression, regression diagram
|
|
136
|
-
-- add QQ plot
|
|
137
|
-
-- n-sample tests: add onetail option
|
|
136
|
+
-- add QQ plot
|
|
137
|
+
-- n-sample tests: add onetail option
|
|
138
138
|
|
|
139
139
|
✅ done -- detailed normality test results
|
|
140
140
|
✅ done -- added posthoc: Kruskal-Wallis Dunn's multiple comparisons
|
|
141
141
|
|
|
142
|
-
tests check:
|
|
143
|
-
1-sample:
|
|
144
|
-
--Wilcoxon 2,1 tails
|
|
145
|
-
--t-tests 2,1 tails
|
|
146
|
-
|
|
147
|
-
2-sample:
|
|
148
|
-
--Wilcoxon 2,1 tails
|
|
149
|
-
--Mann-whitney 2,1 tails
|
|
150
|
-
--t-tests 2,1 tails
|
|
151
|
-
|
|
152
|
-
n-sample:
|
|
153
|
-
--Kruskal-Wallis 2 tail
|
|
154
|
-
--Dunn's multiple comparisons
|
|
155
|
-
--Friedman 2 tail
|
|
156
|
-
--one-way ANOWA 2 tail
|
|
157
|
-
--Tukey`s multiple comparisons
|
|
142
|
+
tests check:
|
|
143
|
+
1-sample:
|
|
144
|
+
✅ok --Wilcoxon 2,1 tails
|
|
145
|
+
✅ok --t-tests 2,1 tails
|
|
146
|
+
|
|
147
|
+
2-sample:
|
|
148
|
+
✅ok --Wilcoxon 2,1 tails
|
|
149
|
+
✅ok --Mann-whitney 2,1 tails
|
|
150
|
+
✅ok --t-tests 2,1 tails
|
|
151
|
+
|
|
152
|
+
n-sample:
|
|
153
|
+
✅ok --Kruskal-Wallis 2 tail
|
|
154
|
+
✅ok --Dunn's multiple comparisons
|
|
155
|
+
✅ok --Friedman 2 tail
|
|
156
|
+
✅ok --one-way ANOWA 2 tail
|
|
157
|
+
✅ok --Tukey`s multiple comparisons
|
|
@@ -341,7 +341,7 @@ class BaseStatPlot(Helpers):
|
|
|
341
341
|
marker='o',
|
|
342
342
|
markersize=8,
|
|
343
343
|
linewidth=1.2,
|
|
344
|
-
zorder=
|
|
344
|
+
zorder=2):
|
|
345
345
|
# Generate x jitter pool.
|
|
346
346
|
spread_pool = [] # storing x positions of data points
|
|
347
347
|
for i, data in enumerate(self.data_groups):
|
|
@@ -358,7 +358,7 @@ class BaseStatPlot(Helpers):
|
|
|
358
358
|
linewidth=linewidth*self.figure_scale_factor,
|
|
359
359
|
# Connect the data points if desired.
|
|
360
360
|
linestyle='-' if self.dependent else '',
|
|
361
|
-
zorder=zorder)
|
|
361
|
+
zorder=zorder-1)
|
|
362
362
|
|
|
363
363
|
def add_swarm(self, ax,
|
|
364
364
|
color='grey',
|
|
@@ -366,7 +366,7 @@ class BaseStatPlot(Helpers):
|
|
|
366
366
|
marker='o',
|
|
367
367
|
markersize=8,
|
|
368
368
|
linewidth=1.4,
|
|
369
|
-
zorder=
|
|
369
|
+
zorder=2):
|
|
370
370
|
"""
|
|
371
371
|
Add a swarmplot (scatter-like plot with non-overlapping points)
|
|
372
372
|
to the provided Axes. Automatically reduce point size if overcrowded.
|
|
@@ -680,6 +680,9 @@ class ViolinStatPlot(BaseStatPlot):
|
|
|
680
680
|
self.add_titles_and_labels(fig, ax)
|
|
681
681
|
self.axes_formatting(ax, linewidth)
|
|
682
682
|
|
|
683
|
+
xmin, xmax = ax.get_xlim()
|
|
684
|
+
ax.set_xlim(xmin - 0.3, xmax + 0.3)
|
|
685
|
+
|
|
683
686
|
|
|
684
687
|
class BoxStatPlot(BaseStatPlot):
|
|
685
688
|
|
|
@@ -713,7 +716,7 @@ class ScatterStatPlot(BaseStatPlot):
|
|
|
713
716
|
self.axes_formatting(ax, linewidth)
|
|
714
717
|
|
|
715
718
|
xmin, xmax = ax.get_xlim()
|
|
716
|
-
ax.set_xlim(xmin - 0.
|
|
719
|
+
ax.set_xlim(xmin - 0.3, xmax + 0.3)
|
|
717
720
|
|
|
718
721
|
|
|
719
722
|
class SwarmStatPlot(BaseStatPlot):
|
|
@@ -735,4 +738,4 @@ class SwarmStatPlot(BaseStatPlot):
|
|
|
735
738
|
self.axes_formatting(ax, linewidth)
|
|
736
739
|
|
|
737
740
|
xmin, xmax = ax.get_xlim()
|
|
738
|
-
ax.set_xlim(xmin - 0.
|
|
741
|
+
ax.set_xlim(xmin - 0.3, xmax + 0.3)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# AutoStatLib package version:
|
|
2
|
-
__version__ = "0.2.
|
|
2
|
+
__version__ = "0.2.18"
|
|
@@ -21,6 +21,16 @@ class Helpers():
|
|
|
21
21
|
{'Row': rows, 'Col': cols, 'Value': data})
|
|
22
22
|
return df
|
|
23
23
|
|
|
24
|
+
def list_to_matrix(self, list, n):
|
|
25
|
+
i = 0
|
|
26
|
+
matrix = [[1.0 for _ in range(n)] for _ in range(n)]
|
|
27
|
+
for ax0 in range(n):
|
|
28
|
+
for ax1 in range(ax0+1, n):
|
|
29
|
+
matrix[ax0][ax1] = list[i]
|
|
30
|
+
matrix[ax1][ax0] = list[i]
|
|
31
|
+
i += 1
|
|
32
|
+
return matrix
|
|
33
|
+
|
|
24
34
|
def floatify_recursive(self, data):
|
|
25
35
|
if isinstance(data, list):
|
|
26
36
|
# Recursively process sublists and filter out None values
|
|
@@ -99,12 +99,12 @@ class StatisticalTests():
|
|
|
99
99
|
[[f"Group_{i+1}"] * len(group) for i, group in enumerate(self.data)])
|
|
100
100
|
# Tukey's multiple comparisons
|
|
101
101
|
tukey_result = pairwise_tukeyhsd(data_flat, group_labels)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
102
|
+
|
|
103
|
+
list = tukey_result.pvalues.tolist()
|
|
104
|
+
n = self.n_groups
|
|
105
|
+
# prepare posthoc matrix
|
|
106
|
+
self.posthoc_matrix = self.list_to_matrix(list, n)
|
|
107
|
+
|
|
108
108
|
return stat, p_value
|
|
109
109
|
|
|
110
110
|
def anova_1w_rm(self):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AutoStatLib
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.18
|
|
4
4
|
Summary: AutoStatLib - a simple statistical analysis tool
|
|
5
5
|
Author: Stemonitis, SciWare LLC
|
|
6
6
|
Author-email: konung-yaropolk <yaropolk1995@gmail.com>
|
|
@@ -673,25 +673,25 @@ If errors occured, *GetResult()* returns an empty dictionary
|
|
|
673
673
|
-- add independent t-test with Welch correction (do not assume equal SDs in groups)
|
|
674
674
|
-- add correlation test, correlation diagram
|
|
675
675
|
-- add linear regression, regression diagram
|
|
676
|
-
-- add QQ plot
|
|
677
|
-
-- n-sample tests: add onetail option
|
|
676
|
+
-- add QQ plot
|
|
677
|
+
-- n-sample tests: add onetail option
|
|
678
678
|
|
|
679
679
|
✅ done -- detailed normality test results
|
|
680
680
|
✅ done -- added posthoc: Kruskal-Wallis Dunn's multiple comparisons
|
|
681
681
|
|
|
682
|
-
tests check:
|
|
683
|
-
1-sample:
|
|
684
|
-
--Wilcoxon 2,1 tails
|
|
685
|
-
--t-tests 2,1 tails
|
|
686
|
-
|
|
687
|
-
2-sample:
|
|
688
|
-
--Wilcoxon 2,1 tails
|
|
689
|
-
--Mann-whitney 2,1 tails
|
|
690
|
-
--t-tests 2,1 tails
|
|
691
|
-
|
|
692
|
-
n-sample:
|
|
693
|
-
--Kruskal-Wallis 2 tail
|
|
694
|
-
--Dunn's multiple comparisons
|
|
695
|
-
--Friedman 2 tail
|
|
696
|
-
--one-way ANOWA 2 tail
|
|
697
|
-
--Tukey`s multiple comparisons
|
|
682
|
+
tests check:
|
|
683
|
+
1-sample:
|
|
684
|
+
✅ok --Wilcoxon 2,1 tails
|
|
685
|
+
✅ok --t-tests 2,1 tails
|
|
686
|
+
|
|
687
|
+
2-sample:
|
|
688
|
+
✅ok --Wilcoxon 2,1 tails
|
|
689
|
+
✅ok --Mann-whitney 2,1 tails
|
|
690
|
+
✅ok --t-tests 2,1 tails
|
|
691
|
+
|
|
692
|
+
n-sample:
|
|
693
|
+
✅ok --Kruskal-Wallis 2 tail
|
|
694
|
+
✅ok --Dunn's multiple comparisons
|
|
695
|
+
✅ok --Friedman 2 tail
|
|
696
|
+
✅ok --one-way ANOWA 2 tail
|
|
697
|
+
✅ok --Tukey`s multiple comparisons
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|