{"adoption": {"forks": 413, "observed_at": "2026-08-28T04:04:28.707918+00:00", "stars": 1354}, "canonical_url": "https://ross.abutalabs.com/products/causal_inference_python_code", "card": {"archived": false, "artifact_type": "learning-resource", "description": "Python code for part 2 of the book Causal Inference: What If, by Miguel Hernán and James Robins", "domain": ["data-science", "education", "tutorials"], "enriched": true, "function": ["data-science", "machine-learning"], "health_score": 20, "homepage": null, "language": "Jupyter Notebook", "license": null, "license_family": "other", "maturity": "maintenance", "member_repos": ["jrfiedler/causal_inference_python_code"], "name": "jrfiedler/causal_inference_python_code", "platform": ["python"], "pushed_at": "2022-01-08T02:29:18+00:00", "repo": "jrfiedler/causal_inference_python_code", "stars": 1354, "tags": ["causal-inference", "jupyter-notebooks", "statistics", "epidemiology", "book-companion"], "topics": ["causality", "causal-inference", "data-science", "python"], "urls": [], "use_cases": ["learn causal inference from the Hernán and Robins book with Python", "replicate book examples like g-formulas and IP weighting in Python", "find Python equivalents of the book's Stata, R, and SAS programs", "study marginal structural models and standardization hands-on", "teach a causal inference course with worked code examples"], "what_it_is": "A collection of Jupyter notebooks implementing the Python code for Part II of the book 'Causal Inference: What If' by Hernán and Robins. It reproduces the book's Stata, R, and SAS analyses using numpy, pandas, statsmodels, and related libraries.", "when_to_avoid": ["you need a production causal inference library with APIs and tests", "you need Part I or Part III of the book, which are not covered", "you require a maintained, licensed package for a software project"], "when_to_choose": ["you are working through 'Causal Inference: What If' and want Python implementations", "you want reference code for causal inference methods like IP weighting and g-computation", "you prefer notebooks that mirror the book's chapter-by-chapter analyses"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/causal_inference_python_code", "repo": "jrfiedler/causal_inference_python_code", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.707918+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:42:02.090541+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "666ced8d1c221fc7a40a51fd4bcb64e7aa973109480bc3e95335d4046edd6d30", "fetched_at": "2026-08-28T04:04:28.707918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jrfiedler/causal_inference_python_code"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.707918+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:42:02.090541+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "666ced8d1c221fc7a40a51fd4bcb64e7aa973109480bc3e95335d4046edd6d30", "fetched_at": "2026-08-28T04:04:28.707918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jrfiedler/causal_inference_python_code"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:42:02.090541+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "666ced8d1c221fc7a40a51fd4bcb64e7aa973109480bc3e95335d4046edd6d30", "fetched_at": "2026-08-28T04:04:28.707918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jrfiedler/causal_inference_python_code"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.707918+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.707918+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.707918+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:42:02.090541+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "666ced8d1c221fc7a40a51fd4bcb64e7aa973109480bc3e95335d4046edd6d30", "fetched_at": "2026-08-28T04:04:28.707918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jrfiedler/causal_inference_python_code"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.707918+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.707918+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:42:02.090541+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "666ced8d1c221fc7a40a51fd4bcb64e7aa973109480bc3e95335d4046edd6d30", "fetched_at": "2026-08-28T04:04:28.707918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jrfiedler/causal_inference_python_code"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.707918+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.707918+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.707918+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:42:02.090541+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "666ced8d1c221fc7a40a51fd4bcb64e7aa973109480bc3e95335d4046edd6d30", "fetched_at": "2026-08-28T04:04:28.707918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jrfiedler/causal_inference_python_code"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.707918+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.707918+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:42:02.090541+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "666ced8d1c221fc7a40a51fd4bcb64e7aa973109480bc3e95335d4046edd6d30", "fetched_at": "2026-08-28T04:04:28.707918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jrfiedler/causal_inference_python_code"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:42:02.090541+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "666ced8d1c221fc7a40a51fd4bcb64e7aa973109480bc3e95335d4046edd6d30", "fetched_at": "2026-08-28T04:04:28.707918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jrfiedler/causal_inference_python_code"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:42:02.090541+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "666ced8d1c221fc7a40a51fd4bcb64e7aa973109480bc3e95335d4046edd6d30", "fetched_at": "2026-08-28T04:04:28.707918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jrfiedler/causal_inference_python_code"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:42:02.090541+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "666ced8d1c221fc7a40a51fd4bcb64e7aa973109480bc3e95335d4046edd6d30", "fetched_at": "2026-08-28T04:04:28.707918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jrfiedler/causal_inference_python_code"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:39:23.370411+00:00", "flags": ["no_releases", "no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3132, "days_push": 1699, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}