RepositoryPythonCNTrung Quốc
ZhenHaoFu810

ZhenHaoFu810/StataFlow

Stata-aligned econometrics for Python, with field-level validation across the documented support surface.

171sao
2fork
0issue
3lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: difference-in-differences

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: stata

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: fixed-effects

#1 Repository của tuần

📊 StataFlow — Thư viện kinh tế lượng Python tái hiện chính xác từng lệnh Stata

14 lệnh Stata trong Python, có validation chéo trên toàn bộ bề mặt hỗ trợ.

StataFlow là thư viện Python dành cho nhà nghiên cứu muốn giữ workflow Python mà không từ bỏ các quy ước kinh tế lượng quen thuộc trong Stata. Dự án không phải thư viện thống kê tổng quát — mỗi lệnh công khai đều được validation chéo so sánh với Stata trên toàn bộ bề mặt hỗ trợ, backed bởi synthetic cases, public real-data cases, và field-level comparisons. Phiên bản 1.3.0 bao phủ 14 lệnh kiểu Stata.

✨ Điểm nổi bật

  • 14 lệnh ước lượng: regress, xtreg_fe, areg, reghdfe, ivregress_2sls, ivreghdfe, logit, probit, poisson, ppmlhdfe, did_imputation, eventstudyinteract, csdid, rdrobust
  • Hai tầng API: tầng lệnh tương thích Stata (stataflow.compat.stata) và tầng ước lượng Python-native (stataflow.estimators)
  • Output thích ứng: result.display() in bảng kết quả hoàn chỉnh với thống kê và diagnostic phù hợp từng lệnh; notebook nhận nội dung tương đương dưới dạng escaped HTML
  • Fixed-effects bậc cao: MAP absorption cho thiết kế FE lớn, multi-FE, singleton handling, individual slopes, cluster-aware VCE
  • Instrumental variables: 2SLS, GMM2S, LIML, Fuller/k-class, first-stage diagnostics, weak-instrument tests, overidentification tests
  • DID và RD: BJS imputation, Sun-Abraham event-study, Callaway-Sant'Anna DID, sharp/fuzzy regression discontinuity
  • Validation-first: mọi lệnh công khai đều có field-level Stata validation across documented support surface

💡 Vì sao đáng chú ý

StataFlow giải quyết đúng nỗi đau của nhà nghiên cứu kinh tế lượng: muốn dùng Python cho pipeline dữ liệu nhưng vẫn cần các ước lượng đã được kiểm chứng qua hàng thập kỷ trong Stata. Điểm khác biệt lớn nhất là không chỉ "port" lệnh — dự án xây dựng validation chéo trên toàn bộ bề mặt hỗ trợ, đảm bảo kết quả Python khớp với Stata trước khi công bố. Với 14 lệnh phủ từ OLS cơ bản đến DID, RD, IV phức tạp, StataFlow đủ để thay thế Stata trong phần lớn workflow nghiên cứu thực nghiệm.

Hai tầng API giúp người dùng chuyển đổi mượt mà: bắt đầu với cú pháp Stata quen thuộc, sau đó chuyển sang Python-native khi cần tích hợp sâu hơn vào pipeline ML hoặc hạ tầng sản phẩm.


#causal-inference #econometrics #python #stata #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
igerber/diff-diff

Difference-in-Differences causal inference in Python. Callaway-Sant'Anna, Synthetic DiD, Honest DiD, event studies. sklearn-like API, validated against R.

417
Dec 1, 2026
RepositoryPython
brycewang-stanford/StatsPAI

StatsPAI is an Agent-native Python library for causal inference and applied econometrics — unified API, broad cross-method coverage, structured result objects, machine-readable schemas, Skills, an MCP server, and R/Stata parity validation.

392
Nov 30, 2026
RepositoryR
RobsonTigre/everyday-ci

R & Python code and datasets for Everyday Causal Inference — a free book on experiments, DiD, IV, RDD, and causal time series for business

147
Oct 18, 2026
RepositoryPython
py-econometrics/pyfixest

Fast High-Dimensional Fixed Effects Regression in Python following fixest-syntax

371
Dec 2, 2026
RepositoryPython
bernardodionisi/differences

difference-in-differences in Python

116
Apr 12, 2026
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026
RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

379.9k
Sep 15, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026
RepositoryPython
TheAlgorithms/Python

All Algorithms implemented in Python

226.6k
Nov 13, 2026