critical-es-value 0.1.0__py3-none-any.whl → 0.2.0__py3-none-any.whl
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.
- critical_es_value/ttest.py +7 -0
- {critical_es_value-0.1.0.dist-info → critical_es_value-0.2.0.dist-info}/METADATA +8 -2
- {critical_es_value-0.1.0.dist-info → critical_es_value-0.2.0.dist-info}/RECORD +5 -5
- {critical_es_value-0.1.0.dist-info → critical_es_value-0.2.0.dist-info}/WHEEL +0 -0
- {critical_es_value-0.1.0.dist-info → critical_es_value-0.2.0.dist-info}/licenses/LICENSE +0 -0
critical_es_value/ttest.py
CHANGED
@@ -77,6 +77,9 @@ def critical_for_one_sample_ttest(
|
|
77
77
|
d = t * factor
|
78
78
|
|
79
79
|
tc = np.abs(stats.t.ppf(alpha, dof))
|
80
|
+
if alternative == "less":
|
81
|
+
tc *= -1
|
82
|
+
|
80
83
|
dc = tc * factor
|
81
84
|
|
82
85
|
j = utils.get_bias_correction_factor_J(dof)
|
@@ -155,6 +158,8 @@ def _critical_for_two_sample_ttest_paired(
|
|
155
158
|
d = dz * factor2
|
156
159
|
|
157
160
|
tc = np.abs(stats.t.ppf(alpha, dof))
|
161
|
+
if alternative == "less":
|
162
|
+
tc *= -1
|
158
163
|
dzc = tc * factor1
|
159
164
|
dc = dzc * factor2
|
160
165
|
|
@@ -246,6 +251,8 @@ def critical_for_two_sample_ttest(
|
|
246
251
|
d = t * factor
|
247
252
|
|
248
253
|
tc = np.abs(stats.t.ppf(alpha, dof))
|
254
|
+
if alternative == "less":
|
255
|
+
tc *= -1
|
249
256
|
dc = tc * factor
|
250
257
|
|
251
258
|
s1 = np.std(x, ddof=1)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: critical-es-value
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.2.0
|
4
4
|
Summary: Calculate critical effect size values.
|
5
5
|
Author-email: Florian Rohrer <semicolonator@gmail.com>
|
6
6
|
License-File: LICENSE
|
7
|
-
Requires-Python: >=3.
|
7
|
+
Requires-Python: >=3.11
|
8
8
|
Requires-Dist: mpmath>=1.3.0
|
9
9
|
Requires-Dist: pandas>=2.3.3
|
10
10
|
Requires-Dist: pingouin>=0.5.5
|
@@ -14,6 +14,12 @@ Description-Content-Type: text/markdown
|
|
14
14
|
|
15
15
|
Calculate critical effect size values for t-Tests, correlation tests and linear regression coefficients.
|
16
16
|
|
17
|
+
## Installation
|
18
|
+
|
19
|
+
```
|
20
|
+
pip install critical-es-value
|
21
|
+
```
|
22
|
+
|
17
23
|
## Usage
|
18
24
|
|
19
25
|
```python
|
@@ -1,9 +1,9 @@
|
|
1
1
|
critical_es_value/__init__.py,sha256=PK8lNkZdPVOc6QU17x72Cwe0QyVqRA8s82dbXl2i5og,329
|
2
2
|
critical_es_value/corrtest.py,sha256=YDOFh93RBaLgt09hIkbQm0nEWEhbMSUPiydEqH_cRaU,2462
|
3
3
|
critical_es_value/linreg.py,sha256=YF_PQTLUfqm_yJTKplqDMlom8xCqKZUUhh9_9L0Ui-k,3301
|
4
|
-
critical_es_value/ttest.py,sha256=
|
4
|
+
critical_es_value/ttest.py,sha256=9tK2-hO4GYDLejC_Q8sWysfvxE8ECaqK5JcRacq0tGY,8270
|
5
5
|
critical_es_value/utils.py,sha256=mtpc_nQIVG1NQWrzlZbb7Z-CtktqQsdLvcXtIK5AuZc,1710
|
6
|
-
critical_es_value-0.
|
7
|
-
critical_es_value-0.
|
8
|
-
critical_es_value-0.
|
9
|
-
critical_es_value-0.
|
6
|
+
critical_es_value-0.2.0.dist-info/METADATA,sha256=7zGhbnd4gAZXUpxueEl9WEoQOppNjC3p5gK5RMiTH9U,4470
|
7
|
+
critical_es_value-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
+
critical_es_value-0.2.0.dist-info/licenses/LICENSE,sha256=4t8Z4NCsOSXi1k1chjuKznC1BHPZp2bTXHH_qCDF7no,1071
|
9
|
+
critical_es_value-0.2.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|