StatsPAI 0.1.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.
- statspai/__init__.py +54 -0
- statspai/causal/__init__.py +10 -0
- statspai/causal/causal_forest.py +795 -0
- statspai/core/__init__.py +12 -0
- statspai/core/base.py +87 -0
- statspai/core/results.py +180 -0
- statspai/core/utils.py +229 -0
- statspai/output/__init__.py +10 -0
- statspai/output/outreg2.py +729 -0
- statspai/regression/__init__.py +11 -0
- statspai/regression/ols.py +388 -0
- statspai-0.1.0.dist-info/METADATA +252 -0
- statspai-0.1.0.dist-info/RECORD +16 -0
- statspai-0.1.0.dist-info/WHEEL +5 -0
- statspai-0.1.0.dist-info/licenses/LICENSE +21 -0
- statspai-0.1.0.dist-info/top_level.txt +1 -0
statspai/__init__.py
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""
|
|
2
|
+
StatsPAI: The AI-powered Statistics & Econometrics Toolkit for Python
|
|
3
|
+
|
|
4
|
+
This package provides tools for econometric analysis including:
|
|
5
|
+
- OLS regression with robust standard errors
|
|
6
|
+
- Causal Forest for heterogeneous treatment effects
|
|
7
|
+
- Panel data models (IV/2SLS)
|
|
8
|
+
- Time series analysis
|
|
9
|
+
- Publication-ready output formatting
|
|
10
|
+
|
|
11
|
+
Basic usage:
|
|
12
|
+
>>> import statspai as sp
|
|
13
|
+
>>>
|
|
14
|
+
>>> # Traditional regression
|
|
15
|
+
>>> result = pe.regress("y ~ x1 + x2", data=df)
|
|
16
|
+
>>> result.summary()
|
|
17
|
+
>>>
|
|
18
|
+
>>> # Causal Forest for treatment effects
|
|
19
|
+
>>> cf = pe.causal_forest("y ~ treatment | x1 + x2", data=df)
|
|
20
|
+
>>> effects = cf.effect(df[['x1', 'x2']])
|
|
21
|
+
>>>
|
|
22
|
+
>>> # Export results
|
|
23
|
+
>>> pe.outreg2(result, cf, filename="results.xlsx")
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
from .core.results import EconometricResults
|
|
27
|
+
from .regression.ols import regress
|
|
28
|
+
from .causal.causal_forest import CausalForest, causal_forest
|
|
29
|
+
from .output.outreg2 import OutReg2, outreg2
|
|
30
|
+
|
|
31
|
+
__version__ = "0.1.0"
|
|
32
|
+
__author__ = "StatsPAI Team"
|
|
33
|
+
__email__ = "contact@statspai.org"
|
|
34
|
+
|
|
35
|
+
__all__ = [
|
|
36
|
+
"regress",
|
|
37
|
+
"EconometricResults",
|
|
38
|
+
"CausalForest",
|
|
39
|
+
"causal_forest",
|
|
40
|
+
"OutReg2",
|
|
41
|
+
"outreg2",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
__version__ = "0.1.0"
|
|
45
|
+
__author__ = "Bryce Wang"
|
|
46
|
+
__email__ = "your.email@example.com"
|
|
47
|
+
|
|
48
|
+
from .regression.ols import regress
|
|
49
|
+
from .core.results import EconometricResults
|
|
50
|
+
|
|
51
|
+
__all__ = [
|
|
52
|
+
"regress",
|
|
53
|
+
"EconometricResults",
|
|
54
|
+
]
|