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 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
+ ]
@@ -0,0 +1,10 @@
1
+ """
2
+ Causal inference methods for StatsPAI
3
+ """
4
+
5
+ from .causal_forest import CausalForest, causal_forest
6
+
7
+ __all__ = [
8
+ "CausalForest",
9
+ "causal_forest",
10
+ ]