AutoStatLib 0.4.5__tar.gz → 0.4.6__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.4.5/src/AutoStatLib.egg-info → autostatlib-0.4.6}/PKG-INFO +1 -1
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/_version.py +1 -1
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/normality_tests.py +26 -18
- {autostatlib-0.4.5 → autostatlib-0.4.6/src/AutoStatLib.egg-info}/PKG-INFO +1 -1
- {autostatlib-0.4.5 → autostatlib-0.4.6}/LICENSE +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/MANIFEST.in +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/README.md +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/pyproject.toml +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/requirements.txt +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/setup.cfg +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/AutoStatLib.py +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/StatPlots.py +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/__init__.py +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/__main__.py +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/_protocol.py +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/helpers.py +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/statistical_tests.py +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib/text_formatting.py +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib.egg-info/SOURCES.txt +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib.egg-info/dependency_links.txt +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib.egg-info/requires.txt +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/src/AutoStatLib.egg-info/top_level.txt +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/tests/test_autostatlib.py +0 -0
- {autostatlib-0.4.5 → autostatlib-0.4.6}/tests/test_statplots.py +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# AutoStatLib package version:
|
|
2
|
-
__version__ = "0.4.
|
|
2
|
+
__version__ = "0.4.6"
|
|
@@ -205,22 +205,30 @@ class NormalityTests(StatAnalysisProtocol):
|
|
|
205
205
|
)
|
|
206
206
|
result = anderson(data, dist="norm", method=mc_method)
|
|
207
207
|
return float(result.statistic), float(result.pvalue)
|
|
208
|
+
|
|
209
|
+
if method == "interpolate":
|
|
210
|
+
result = anderson(data, dist="norm", method="interpolate")
|
|
211
|
+
return float(result.statistic), float(result.pvalue)
|
|
208
212
|
|
|
209
|
-
n: int = len(data)
|
|
210
|
-
ad: float = float(anderson(data, dist="norm", method="interpolate").statistic)
|
|
211
|
-
|
|
212
|
-
# Adjust statistic for small sample sizes, then map to a
|
|
213
|
-
# continuous p-value (Jantschi & Bolboaca, 2018).
|
|
214
|
-
s: float = ad * (1 + 0.75 / n + 2.25 / (n**2))
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
213
|
+
# n: int = len(data)
|
|
214
|
+
# ad: float = float(anderson(data, dist="norm", method="interpolate").statistic)
|
|
215
|
+
|
|
216
|
+
# # Adjust statistic for small sample sizes, then map to a
|
|
217
|
+
# # continuous p-value (Jantschi & Bolboaca, 2018).
|
|
218
|
+
# s: float = ad * (1 + 0.75 / n + 2.25 / (n**2))
|
|
219
|
+
|
|
220
|
+
# try:
|
|
221
|
+
# p: float
|
|
222
|
+
# if s >= 0.6:
|
|
223
|
+
# p = np.e ** (1.2937 - 5.709 * s + 0.0186 * s**2)
|
|
224
|
+
# elif s > 0.34:
|
|
225
|
+
# p = np.e ** (0.9177 - 4.279 * s - 1.38 * s**2)
|
|
226
|
+
# elif s > 0.2:
|
|
227
|
+
# p = 1 - np.e ** (-8.318 + 42.796 * s - 59.938 * s**2)
|
|
228
|
+
# else:
|
|
229
|
+
# p = 1 - np.e ** (-13.436 + 101.14 * s - 223.73 * s**2)
|
|
230
|
+
# # catch rear case of overflow when p is too small
|
|
231
|
+
# except Exception(OverflowError):
|
|
232
|
+
# p = 5e-324
|
|
233
|
+
|
|
234
|
+
# return ad, p
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|