AutoStatLib 0.2.26__tar.gz → 0.2.27__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.
- {autostatlib-0.2.26/src/AutoStatLib.egg-info → autostatlib-0.2.27}/PKG-INFO +1 -1
- {autostatlib-0.2.26 → autostatlib-0.2.27}/src/AutoStatLib/AutoStatLib.py +11 -3
- {autostatlib-0.2.26 → autostatlib-0.2.27}/src/AutoStatLib/_version.py +1 -1
- {autostatlib-0.2.26 → autostatlib-0.2.27/src/AutoStatLib.egg-info}/PKG-INFO +1 -1
- {autostatlib-0.2.26 → autostatlib-0.2.27}/LICENSE +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/MANIFEST.in +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/README.md +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/pyproject.toml +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/requirements.txt +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/setup.cfg +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/src/AutoStatLib/StatPlots.py +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/src/AutoStatLib/__init__.py +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/src/AutoStatLib/__main__.py +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/src/AutoStatLib/helpers.py +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/src/AutoStatLib/normality_tests.py +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/src/AutoStatLib/statistical_tests.py +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/src/AutoStatLib/text_formatting.py +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/src/AutoStatLib.egg-info/SOURCES.txt +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/src/AutoStatLib.egg-info/dependency_links.txt +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/src/AutoStatLib.egg-info/requires.txt +0 -0
- {autostatlib-0.2.26 → autostatlib-0.2.27}/src/AutoStatLib.egg-info/top_level.txt +0 -0
|
@@ -68,7 +68,7 @@ class StatisticalAnalysis(StatisticalTests, NormalityTests, TextFormatting, Help
|
|
|
68
68
|
]
|
|
69
69
|
self.test_ids_parametric = [
|
|
70
70
|
'anova_1w_ordinary',
|
|
71
|
-
'anova_1w_rm'
|
|
71
|
+
'anova_1w_rm',
|
|
72
72
|
't_test_independent',
|
|
73
73
|
't_test_paired',
|
|
74
74
|
't_test_single_sample',
|
|
@@ -100,6 +100,8 @@ class StatisticalAnalysis(StatisticalTests, NormalityTests, TextFormatting, Help
|
|
|
100
100
|
'param_test_with_non-normal_data': '\nWarning: Parametric test was manualy chosen for Not-Normaly distributed data.\n The results might be skewed. \n Please, run non-parametric test or preform automatic test selection.\n',
|
|
101
101
|
'non-param_test_with_normal_data': '\nWarning: Non-Parametric test was manualy chosen for Normaly distributed data.\n The results might be skewed. \n Please, run parametric test or preform automatic test selection.\n',
|
|
102
102
|
'no_pop_mean_set': '\nWarning: No Population Mean was set up for single-sample test, used default 0 value.\n The results might be skewed. \n Please, set the Population Mean and run the test again.\n',
|
|
103
|
+
# 'paired_test_with_independend_samples': '\nWarning: A paired test was manually selected, even though the samples were declared independent.\n The results might be skewed. \n Please, run test for independend samples or preform automatic test selection.\n',
|
|
104
|
+
# 'independend_test_with_paired_samples': '\nWarning: An independent test was manually selected, even though the samples were declared paired.\n The results might be skewed. \n Please, run test for paired samples or preform automatic test selection.\n',
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
def run_test(self, test='auto'):
|
|
@@ -139,7 +141,7 @@ class StatisticalAnalysis(StatisticalTests, NormalityTests, TextFormatting, Help
|
|
|
139
141
|
assert test in self.test_ids_all or test == 'auto', 'Wrong test id choosen, ensure you called correct function'
|
|
140
142
|
assert all(len(
|
|
141
143
|
group) >= 4 for group in self.data), 'Each group must contain at least four values'
|
|
142
|
-
assert not (self.paired is True
|
|
144
|
+
assert not (test in self.test_ids_dependent # self.paired is True
|
|
143
145
|
and not all(len(lst) == len(self.data[0]) for lst in self.data)), 'Paired samples must have the same length'
|
|
144
146
|
assert not (test in self.test_ids_dependent
|
|
145
147
|
and not all(len(lst) == len(self.data[0]) for lst in self.data)), 'Samples must have the same length for the dependend statistics test'
|
|
@@ -203,8 +205,14 @@ class StatisticalAnalysis(StatisticalTests, NormalityTests, TextFormatting, Help
|
|
|
203
205
|
if test != 'auto' and self.parametric and test not in self.test_ids_parametric:
|
|
204
206
|
self.AddWarning('non-param_test_with_normal_data')
|
|
205
207
|
|
|
206
|
-
#
|
|
208
|
+
# Maybe unneeded checks for manually selected tests
|
|
209
|
+
# because user propably know what test they selected
|
|
210
|
+
# if test != 'auto' and not self.paired and test in self.test_ids_dependent:
|
|
211
|
+
# self.AddWarning('paired_test_with_independend_samples')
|
|
212
|
+
# if test != 'auto' and self.paired and test not in self.test_ids_dependent:
|
|
213
|
+
# self.AddWarning('independend_test_with_paired_samples')
|
|
207
214
|
|
|
215
|
+
# run the test
|
|
208
216
|
if test in self.test_ids_all:
|
|
209
217
|
self.run_test_by_id(test)
|
|
210
218
|
else:
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# AutoStatLib package version:
|
|
2
|
-
__version__ = "0.2.
|
|
2
|
+
__version__ = "0.2.27"
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|