ABalytics 1.2__tar.gz → 1.2.1__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.
- {abalytics-1.2 → abalytics-1.2.1}/PKG-INFO +1 -1
- {abalytics-1.2 → abalytics-1.2.1}/abalytics/analysis.py +7 -2
- {abalytics-1.2 → abalytics-1.2.1}/abalytics.egg-info/PKG-INFO +1 -1
- {abalytics-1.2 → abalytics-1.2.1}/setup.py +1 -1
- {abalytics-1.2 → abalytics-1.2.1}/LICENSE +0 -0
- {abalytics-1.2 → abalytics-1.2.1}/README.md +0 -0
- {abalytics-1.2 → abalytics-1.2.1}/abalytics/__init__.py +0 -0
- {abalytics-1.2 → abalytics-1.2.1}/abalytics/significance_tests.py +0 -0
- {abalytics-1.2 → abalytics-1.2.1}/abalytics.egg-info/SOURCES.txt +0 -0
- {abalytics-1.2 → abalytics-1.2.1}/abalytics.egg-info/dependency_links.txt +0 -0
- {abalytics-1.2 → abalytics-1.2.1}/abalytics.egg-info/requires.txt +0 -0
- {abalytics-1.2 → abalytics-1.2.1}/abalytics.egg-info/top_level.txt +0 -0
- {abalytics-1.2 → abalytics-1.2.1}/setup.cfg +0 -0
|
@@ -181,6 +181,7 @@ def get_results_pretty_text(
|
|
|
181
181
|
min_sample_size: int = 25,
|
|
182
182
|
header: bool = True,
|
|
183
183
|
identifiers: Optional[List[str]] = None,
|
|
184
|
+
show_only_significant_results: bool = False,
|
|
184
185
|
):
|
|
185
186
|
"""
|
|
186
187
|
Returns a text with the results of the statistical significance tests.
|
|
@@ -193,6 +194,7 @@ def get_results_pretty_text(
|
|
|
193
194
|
min_sample_size (int, optional): The minimum sample size for the data. Defaults to 25.
|
|
194
195
|
header (bool, optional): A boolean flag indicating if the header of the pretty text table should be included. Defaults to True.
|
|
195
196
|
identifiers (list of str, optional): A list of strings that are to be used for identifying the data. Defaults to [].
|
|
197
|
+
show_only_significant_results (bool, optional): A boolean flag indicating if only significant results should be shown. Defaults to False.
|
|
196
198
|
|
|
197
199
|
Returns:
|
|
198
200
|
str: A formatted text string with the results of the statistical significance tests.
|
|
@@ -204,7 +206,6 @@ def get_results_pretty_text(
|
|
|
204
206
|
significant_results = analysis_results.significant_results
|
|
205
207
|
info = analysis_results.info
|
|
206
208
|
sample_size = analysis_results.sample_size
|
|
207
|
-
dichotomous_flag = analysis_results.dichotomous_flag
|
|
208
209
|
levene_flag = analysis_results.levene_flag
|
|
209
210
|
gaussian_flag = analysis_results.gaussian_flag
|
|
210
211
|
|
|
@@ -235,9 +236,13 @@ def get_results_pretty_text(
|
|
|
235
236
|
output_results.append(
|
|
236
237
|
f"{len(identifier_string) * ' '}{sample_size:>10} {levene_output:<6} {gaussian_output:<8} {result.result_pretty_text}"
|
|
237
238
|
)
|
|
238
|
-
|
|
239
|
+
elif not show_only_significant_results:
|
|
239
240
|
output_results.append(
|
|
240
241
|
f"{identifier_string}{sample_size:>10} {levene_output:<6} {gaussian_output:<8} {info}"
|
|
241
242
|
)
|
|
243
|
+
else:
|
|
244
|
+
output_results.append(
|
|
245
|
+
f"{identifier_string}{sample_size:>10} {levene_output:<6} {gaussian_output:<8}"
|
|
246
|
+
)
|
|
242
247
|
output_string += "\n".join(output_results)
|
|
243
248
|
return output_string
|
|
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
|