|
22 | 22 | >>> sp.outreg2(result, filename="results.xlsx") |
23 | 23 | """ |
24 | 24 |
|
25 | | -__version__ = "0.4.0" |
| 25 | +__version__ = "0.5.0" |
26 | 26 | __author__ = "Bryce Wang" |
27 | 27 | __email__ = "bryce@copaper.ai" |
28 | 28 |
|
|
33 | 33 | from .did import ( |
34 | 34 | did, did_2x2, ddd, callaway_santanna, sun_abraham, |
35 | 35 | bacon_decomposition, honest_did, breakdown_m, event_study, |
36 | | - did_analysis, DIDAnalysis, |
| 36 | + did_analysis, DIDAnalysis, did_multiplegt, did_imputation, stacked_did, cic, |
| 37 | + wooldridge_did, drdid, twfe_decomposition, |
| 38 | + pretrends_test, pretrends_power, sensitivity_rr, SensitivityResult, pretrends_summary, |
37 | 39 | parallel_trends_plot, bacon_plot, group_time_plot, did_plot, |
38 | 40 | enhanced_event_study_plot, treatment_rollout_plot, |
39 | 41 | sensitivity_plot, cohort_event_study_plot, |
40 | 42 | ) |
41 | | -from .rd import rdrobust, rdplot, rdplotdensity, rdbwsensitivity, rdbalance, rdplacebo, rdsummary |
| 43 | +from .rd import rdrobust, rdplot, rdplotdensity, rdbwsensitivity, rdbalance, rdplacebo, rdsummary, rkd, rd_honest, rdit |
42 | 44 | from .synth import ( |
43 | 45 | synth, SyntheticControl, synthplot, sdid, augsynth, |
44 | 46 | demeaned_synth, robust_synth, gsynth, staggered_synth, conformal_synth, |
45 | 47 | synthdid_estimate, sc_estimate, did_estimate, |
46 | 48 | synthdid_placebo, synthdid_plot, synthdid_units_plot, synthdid_rmse_plot, |
47 | 49 | california_prop99, |
48 | 50 | ) |
49 | | -from .matching import match, MatchEstimator, ebalance, balanceplot, psplot |
| 51 | +from .matching import ( |
| 52 | + match, MatchEstimator, ebalance, balanceplot, psplot, |
| 53 | + propensity_score, overlap_plot, trimming, love_plot, |
| 54 | + ps_balance, PSBalanceResult, |
| 55 | +) |
50 | 56 | from .dml import dml, DoubleML |
51 | 57 | from .deepiv import deepiv, DeepIV |
52 | 58 | from .panel import panel, panel_compare, PanelResults, PanelCompareResults, PanelRegression |
53 | 59 | from .causal_impact import causal_impact, CausalImpactEstimator, impactplot |
54 | 60 | from .mediation import mediate, MediationAnalysis |
55 | | -from .bartik import bartik, BartikIV |
| 61 | +from .bartik import bartik, BartikIV, ssaggregate, shift_share_se |
56 | 62 | from .output.outreg2 import OutReg2, outreg2 |
57 | 63 | from .output.modelsummary import modelsummary, coefplot |
58 | 64 | from .output.sumstats import sumstats, balance_table |
59 | 65 | from .output.tab import tab |
60 | | -from .postestimation import margins, marginsplot, test, lincom |
61 | | -from .diagnostics import oster_bounds, mccrary_test, diagnose, het_test, reset_test, vif, sensemakr, rddensity, hausman_test, anderson_rubin_test, evalue, evalue_from_result, diagnose_result |
62 | | -from .inference import wild_cluster_bootstrap, aipw, ri_test, ipw, bootstrap, BootstrapResult |
| 66 | +from .output.estimates import eststo, estclear, esttab |
| 67 | +from .output.regression_table import regtable, RegtableResult, mean_comparison, MeanComparisonResult |
| 68 | +from .postestimation import margins, marginsplot, margins_at, margins_at_plot, contrast, pwcompare, test, lincom |
| 69 | +from .diagnostics import oster_bounds, mccrary_test, diagnose, het_test, reset_test, vif, sensemakr, rddensity, hausman_test, anderson_rubin_test, evalue, evalue_from_result, diagnose_result, estat, kitagawa_test, KitagawaResult |
| 70 | +from .inference import wild_cluster_bootstrap, aipw, ri_test, ipw, bootstrap, BootstrapResult, twoway_cluster, conley, pate, PATEEstimator, fisher_exact, FisherResult, jackknife_se, cr2_se, wild_cluster_boot |
63 | 71 | from .spatial import sar, sem, sdm, SpatialModel |
64 | 72 | from .plots import binscatter, set_theme, list_themes, use_chinese, interactive, get_code |
65 | | -from .utils import label_var, label_vars, get_label, get_labels, describe, pwcorr, winsor, read_data |
| 73 | +from .utils import ( |
| 74 | + label_var, label_vars, get_label, get_labels, describe, pwcorr, winsor, read_data, |
| 75 | + dgp_did, dgp_rd, dgp_iv, dgp_rct, dgp_panel, dgp_observational, |
| 76 | + dgp_cluster_rct, dgp_bunching, dgp_synth, dgp_bartik, |
| 77 | +) |
66 | 78 | from .gmm import xtabond |
67 | 79 | from .metalearners import metalearner, SLearner, TLearner, XLearner, RLearner, DRLearner |
68 | 80 | from .metalearners import cate_summary, cate_by_group, cate_plot, cate_group_plot, predict_cate, compare_metalearners, gate_test, blp_test |
|
75 | 87 | from .policy_learning import policy_tree, PolicyTree, policy_value |
76 | 88 | from .conformal_causal import conformal_cate, ConformalCATE |
77 | 89 | from .bcf import bcf, BayesianCausalForest |
78 | | -from .bunching import bunching, BunchingEstimator |
| 90 | +from .bunching import bunching, BunchingEstimator, notch, NotchResult |
79 | 91 | from .matrix_completion import mc_panel, MCPanel |
80 | 92 | from .dose_response import dose_response, DoseResponse |
81 | | -from .bounds import lee_bounds, manski_bounds |
| 93 | +from .bounds import lee_bounds, manski_bounds, BoundsResult, horowitz_manski, iv_bounds, oster_delta, selection_bounds, breakdown_frontier |
82 | 94 | from .interference import spillover, SpilloverEstimator |
83 | 95 | from .dtr import g_estimation, GEstimation |
84 | 96 | from .multi_treatment import multi_treatment, MultiTreatment |
85 | 97 | from .robustness import spec_curve, SpecCurveResult, robustness_report, RobustnessResult, subgroup_analysis, SubgroupResult |
86 | 98 | from .survey import svydesign, SurveyDesign, svymean, svytotal, svyglm |
87 | 99 | from .dag import dag, DAG, dag_example, dag_examples, dag_example_positions, dag_simulate |
| 100 | +from .power import power, PowerResult, power_rct, power_did, power_rd, power_iv, power_cluster_rct, power_ols, mde |
| 101 | +from .decomposition import oaxaca, gelbach, OaxacaResult, GelbachResult |
| 102 | +from .selection import stepwise, lasso_select, SelectionResult |
| 103 | +from .qte import qdid, qte, QTEResult |
| 104 | +from .mht import romano_wolf, RomanoWolfResult, adjust_pvalues, bonferroni, holm, benjamini_hochberg |
88 | 105 | from .registry import list_functions, describe_function, function_schema, search_functions, all_schemas |
89 | 106 |
|
90 | 107 | __all__ = [ |
|
108 | 125 | "event_study", |
109 | 126 | "did_analysis", |
110 | 127 | "DIDAnalysis", |
| 128 | + "did_multiplegt", |
| 129 | + "did_imputation", |
| 130 | + "stacked_did", |
| 131 | + "cic", |
| 132 | + "pretrends_test", |
| 133 | + "pretrends_power", |
| 134 | + "sensitivity_rr", |
| 135 | + "SensitivityResult", |
| 136 | + "pretrends_summary", |
111 | 137 | "parallel_trends_plot", |
112 | 138 | "bacon_plot", |
113 | 139 | "group_time_plot", |
|
116 | 142 | "treatment_rollout_plot", |
117 | 143 | "sensitivity_plot", |
118 | 144 | "cohort_event_study_plot", |
| 145 | + # Wooldridge / DR-DID / TWFE Decomposition |
| 146 | + "wooldridge_did", |
| 147 | + "drdid", |
| 148 | + "twfe_decomposition", |
119 | 149 | # RD |
120 | 150 | "rdrobust", |
121 | 151 | "rdplot", |
|
124 | 154 | "rdbalance", |
125 | 155 | "rdplacebo", |
126 | 156 | "rdsummary", |
| 157 | + "rkd", |
| 158 | + "rd_honest", |
| 159 | + "rdit", |
127 | 160 | # Synthetic Control |
128 | 161 | "synth", |
129 | 162 | "SyntheticControl", |
|
148 | 181 | "ebalance", |
149 | 182 | "balanceplot", |
150 | 183 | "psplot", |
| 184 | + # PS Diagnostics |
| 185 | + "propensity_score", |
| 186 | + "overlap_plot", |
| 187 | + "trimming", |
| 188 | + "love_plot", |
| 189 | + "ps_balance", |
| 190 | + "PSBalanceResult", |
151 | 191 | # Double ML |
152 | 192 | "dml", |
153 | 193 | "DoubleML", |
|
174 | 214 | "sumstats", |
175 | 215 | "balance_table", |
176 | 216 | "tab", |
| 217 | + "eststo", |
| 218 | + "estclear", |
| 219 | + "esttab", |
| 220 | + "regtable", |
| 221 | + "RegtableResult", |
| 222 | + "mean_comparison", |
| 223 | + "MeanComparisonResult", |
177 | 224 | # Plots |
178 | 225 | "binscatter", |
179 | 226 | "set_theme", |
|
199 | 246 | # Post-estimation |
200 | 247 | "margins", |
201 | 248 | "marginsplot", |
| 249 | + "margins_at", |
| 250 | + "margins_at_plot", |
| 251 | + "contrast", |
| 252 | + "pwcompare", |
202 | 253 | "test", |
203 | 254 | "lincom", |
204 | 255 | # Mediation |
|
207 | 258 | # Bartik IV |
208 | 259 | "bartik", |
209 | 260 | "BartikIV", |
| 261 | + "ssaggregate", |
| 262 | + "shift_share_se", |
210 | 263 | # Diagnostics |
211 | 264 | "oster_bounds", |
212 | 265 | "mccrary_test", |
|
221 | 274 | "evalue", |
222 | 275 | "evalue_from_result", |
223 | 276 | "diagnose_result", |
| 277 | + "estat", |
| 278 | + "kitagawa_test", |
| 279 | + "KitagawaResult", |
224 | 280 | # Inference |
225 | 281 | "wild_cluster_bootstrap", |
226 | 282 | "aipw", |
227 | 283 | "ri_test", |
228 | 284 | "ipw", |
229 | 285 | "bootstrap", |
230 | 286 | "BootstrapResult", |
| 287 | + "twoway_cluster", |
| 288 | + "conley", |
| 289 | + "pate", |
| 290 | + "PATEEstimator", |
| 291 | + "fisher_exact", |
| 292 | + "FisherResult", |
| 293 | + "jackknife_se", |
| 294 | + "cr2_se", |
| 295 | + "wild_cluster_boot", |
231 | 296 | # Spatial Econometrics |
232 | 297 | "sar", |
233 | 298 | "sem", |
|
279 | 344 | # Bunching |
280 | 345 | "bunching", |
281 | 346 | "BunchingEstimator", |
| 347 | + "notch", |
| 348 | + "NotchResult", |
282 | 349 | # Matrix Completion |
283 | 350 | "mc_panel", |
284 | 351 | "MCPanel", |
|
288 | 355 | # Bounds |
289 | 356 | "lee_bounds", |
290 | 357 | "manski_bounds", |
| 358 | + "BoundsResult", |
| 359 | + "horowitz_manski", |
| 360 | + "iv_bounds", |
| 361 | + "oster_delta", |
| 362 | + "selection_bounds", |
| 363 | + "breakdown_frontier", |
291 | 364 | # Interference |
292 | 365 | "spillover", |
293 | 366 | "SpilloverEstimator", |
|
317 | 390 | "dag_examples", |
318 | 391 | "dag_example_positions", |
319 | 392 | "dag_simulate", |
| 393 | + # Power Analysis |
| 394 | + "power", |
| 395 | + "PowerResult", |
| 396 | + "power_rct", |
| 397 | + "power_did", |
| 398 | + "power_rd", |
| 399 | + "power_iv", |
| 400 | + "power_cluster_rct", |
| 401 | + "power_ols", |
| 402 | + "mde", |
| 403 | + # Decomposition |
| 404 | + "oaxaca", |
| 405 | + "gelbach", |
| 406 | + "OaxacaResult", |
| 407 | + "GelbachResult", |
| 408 | + # Variable Selection |
| 409 | + "stepwise", |
| 410 | + "lasso_select", |
| 411 | + "SelectionResult", |
| 412 | + # Quantile Treatment Effects |
| 413 | + "qdid", |
| 414 | + "qte", |
| 415 | + "QTEResult", |
| 416 | + # Multiple Hypothesis Testing |
| 417 | + "romano_wolf", |
| 418 | + "RomanoWolfResult", |
| 419 | + "adjust_pvalues", |
| 420 | + "bonferroni", |
| 421 | + "holm", |
| 422 | + "benjamini_hochberg", |
320 | 423 | # AI / Agent Registry |
321 | 424 | "list_functions", |
322 | 425 | "describe_function", |
323 | 426 | "function_schema", |
324 | 427 | "search_functions", |
325 | 428 | "all_schemas", |
| 429 | + # Data Generating Processes |
| 430 | + "dgp_did", |
| 431 | + "dgp_rd", |
| 432 | + "dgp_iv", |
| 433 | + "dgp_rct", |
| 434 | + "dgp_panel", |
| 435 | + "dgp_observational", |
| 436 | + "dgp_cluster_rct", |
| 437 | + "dgp_bunching", |
| 438 | + "dgp_synth", |
| 439 | + "dgp_bartik", |
326 | 440 | ] |
0 commit comments