PyMARE 0.0.7__tar.gz → 0.0.8__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.
Files changed (31) hide show
  1. {PyMARE-0.0.7 → PyMARE-0.0.8}/PKG-INFO +1 -1
  2. {PyMARE-0.0.7 → PyMARE-0.0.8}/PyMARE.egg-info/PKG-INFO +1 -1
  3. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/_version.py +3 -3
  4. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/estimators/combination.py +8 -2
  5. {PyMARE-0.0.7 → PyMARE-0.0.8}/LICENSE +0 -0
  6. {PyMARE-0.0.7 → PyMARE-0.0.8}/MANIFEST.in +0 -0
  7. {PyMARE-0.0.7 → PyMARE-0.0.8}/PyMARE.egg-info/SOURCES.txt +0 -0
  8. {PyMARE-0.0.7 → PyMARE-0.0.8}/PyMARE.egg-info/dependency_links.txt +0 -0
  9. {PyMARE-0.0.7 → PyMARE-0.0.8}/PyMARE.egg-info/not-zip-safe +0 -0
  10. {PyMARE-0.0.7 → PyMARE-0.0.8}/PyMARE.egg-info/requires.txt +0 -0
  11. {PyMARE-0.0.7 → PyMARE-0.0.8}/PyMARE.egg-info/top_level.txt +0 -0
  12. {PyMARE-0.0.7 → PyMARE-0.0.8}/README.md +0 -0
  13. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/__init__.py +0 -0
  14. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/core.py +0 -0
  15. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/datasets/__init__.py +0 -0
  16. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/datasets/metadat.py +0 -0
  17. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/effectsize/__init__.py +0 -0
  18. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/effectsize/base.py +0 -0
  19. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/effectsize/expressions.json +0 -0
  20. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/effectsize/expressions.py +0 -0
  21. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/estimators/__init__.py +0 -0
  22. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/estimators/estimators.py +0 -0
  23. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/resources/datasets/michael2013.json +0 -0
  24. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/resources/datasets/michael2013.tsv +0 -0
  25. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/results.py +0 -0
  26. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/stats.py +0 -0
  27. {PyMARE-0.0.7 → PyMARE-0.0.8}/pymare/utils.py +0 -0
  28. {PyMARE-0.0.7 → PyMARE-0.0.8}/pyproject.toml +0 -0
  29. {PyMARE-0.0.7 → PyMARE-0.0.8}/setup.cfg +0 -0
  30. {PyMARE-0.0.7 → PyMARE-0.0.8}/setup.py +0 -0
  31. {PyMARE-0.0.7 → PyMARE-0.0.8}/versioneer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyMARE
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: PyMARE: Python Meta-Analysis & Regression Engine
5
5
  Home-page: https://github.com/neurostuff/PyMARE
6
6
  Author: PyMARE developers
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyMARE
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: PyMARE: Python Meta-Analysis & Regression Engine
5
5
  Home-page: https://github.com/neurostuff/PyMARE
6
6
  Author: PyMARE developers
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2024-08-08T16:30:52-0500",
11
+ "date": "2024-09-10T20:02:23-0500",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "eb67d0bee37ea522aaa1aa845a723945b6b4744a",
15
- "version": "0.0.7"
14
+ "full-revisionid": "39f579d2bdae80cfdb59921ee960becc077ae54d",
15
+ "version": "0.0.8"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -45,11 +45,15 @@ class CombinationTest(BaseEstimator):
45
45
  p1 = ose.p_value(z, *args, **kwargs)
46
46
  p2 = ose.p_value(-z, *args, **kwargs)
47
47
  p = np.minimum(1, 2 * np.minimum(p1, p2))
48
+ z_calc = ss.norm.isf(p)
49
+ z_calc[p2 < p1] *= -1
48
50
  else:
49
51
  if self.mode == "undirected":
50
52
  z = np.abs(z)
51
53
  p = self.p_value(z, *args, **kwargs)
52
- self.params_ = {"p": p}
54
+ z_calc = ss.norm.isf(p)
55
+
56
+ self.params_ = {"p": p, "z": z_calc}
53
57
  return self
54
58
 
55
59
  def summary(self):
@@ -60,7 +64,9 @@ class CombinationTest(BaseEstimator):
60
64
  "This {} instance hasn't been fitted yet. Please "
61
65
  "call fit() before summary().".format(name)
62
66
  )
63
- return CombinationTestResults(self, self.dataset_, p=self.params_["p"])
67
+ return CombinationTestResults(
68
+ self, self.dataset_, z=self.params_["z"], p=self.params_["p"]
69
+ )
64
70
 
65
71
 
66
72
  class StoufferCombinationTest(CombinationTest):
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