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.

Files changed (21) hide show
  1. {autostatlib-0.2.16/src/AutoStatLib.egg-info → autostatlib-0.2.18}/PKG-INFO +19 -19
  2. {autostatlib-0.2.16 → autostatlib-0.2.18}/README.md +18 -18
  3. {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/StatPlots.py +8 -5
  4. {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/_version.py +1 -1
  5. {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/helpers.py +10 -0
  6. {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/statistical_tests.py +6 -6
  7. {autostatlib-0.2.16 → autostatlib-0.2.18/src/AutoStatLib.egg-info}/PKG-INFO +19 -19
  8. {autostatlib-0.2.16 → autostatlib-0.2.18}/LICENSE +0 -0
  9. {autostatlib-0.2.16 → autostatlib-0.2.18}/MANIFEST.in +0 -0
  10. {autostatlib-0.2.16 → autostatlib-0.2.18}/pyproject.toml +0 -0
  11. {autostatlib-0.2.16 → autostatlib-0.2.18}/requirements.txt +0 -0
  12. {autostatlib-0.2.16 → autostatlib-0.2.18}/setup.cfg +0 -0
  13. {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/AutoStatLib.py +0 -0
  14. {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/__init__.py +0 -0
  15. {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/__main__.py +0 -0
  16. {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/normality_tests.py +0 -0
  17. {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib/text_formatting.py +0 -0
  18. {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib.egg-info/SOURCES.txt +0 -0
  19. {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib.egg-info/dependency_links.txt +0 -0
  20. {autostatlib-0.2.16 → autostatlib-0.2.18}/src/AutoStatLib.egg-info/requires.txt +0 -0
  21. {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.16
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 - ✅ok
685
- --t-tests 2,1 tails -✅ok
686
-
687
- 2-sample:
688
- --Wilcoxon 2,1 tails - ✅ok
689
- --Mann-whitney 2,1 tails - ✅ok
690
- --t-tests 2,1 tails -✅ok
691
-
692
- n-sample:
693
- --Kruskal-Wallis 2 tail - ✅ok
694
- --Dunn's multiple comparisons - ✅ok
695
- --Friedman 2 tail - ✅ok
696
- --one-way ANOWA 2 tail - ✅ok
697
- --Tukey`s multiple comparisons - ✅ok
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 - ✅ok
145
- --t-tests 2,1 tails -✅ok
146
-
147
- 2-sample:
148
- --Wilcoxon 2,1 tails - ✅ok
149
- --Mann-whitney 2,1 tails - ✅ok
150
- --t-tests 2,1 tails -✅ok
151
-
152
- n-sample:
153
- --Kruskal-Wallis 2 tail - ✅ok
154
- --Dunn's multiple comparisons - ✅ok
155
- --Friedman 2 tail - ✅ok
156
- --one-way ANOWA 2 tail - ✅ok
157
- --Tukey`s multiple comparisons - ✅ok
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=1):
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=1):
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.25, xmax + 0.25)
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.25, xmax + 0.25)
741
+ ax.set_xlim(xmin - 0.3, xmax + 0.3)
@@ -1,2 +1,2 @@
1
1
  # AutoStatLib package version:
2
- __version__ = "0.2.16"
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
- p = tukey_result.pvalues.tolist()
103
- self.posthoc_matrix = [
104
- [p[2], p[0], p[1]],
105
- [p[0], p[2], p[2]],
106
- [p[1], p[2], p[2]],
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.16
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 - ✅ok
685
- --t-tests 2,1 tails -✅ok
686
-
687
- 2-sample:
688
- --Wilcoxon 2,1 tails - ✅ok
689
- --Mann-whitney 2,1 tails - ✅ok
690
- --t-tests 2,1 tails -✅ok
691
-
692
- n-sample:
693
- --Kruskal-Wallis 2 tail - ✅ok
694
- --Dunn's multiple comparisons - ✅ok
695
- --Friedman 2 tail - ✅ok
696
- --one-way ANOWA 2 tail - ✅ok
697
- --Tukey`s multiple comparisons - ✅ok
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