{"id":15057575,"url":"https://github.com/jrfiedler/causal_inference_julia_code","last_synced_at":"2026-03-17T20:34:07.912Z","repository":{"id":59414569,"uuid":"440284648","full_name":"jrfiedler/causal_inference_julia_code","owner":"jrfiedler","description":"Julia code for part 2 of the book Causal Inference: What If, by Miguel Hernán and James Robins","archived":false,"fork":false,"pushed_at":"2022-01-08T02:22:05.000Z","size":615,"stargazers_count":49,"open_issues_count":0,"forks_count":13,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T11:35:27.839Z","etag":null,"topics":["causal-inference","causality","data-science","julia","julialang"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jrfiedler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-20T19:29:42.000Z","updated_at":"2025-03-22T08:13:37.000Z","dependencies_parsed_at":"2022-09-16T20:00:44.419Z","dependency_job_id":null,"html_url":"https://github.com/jrfiedler/causal_inference_julia_code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jrfiedler/causal_inference_julia_code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrfiedler%2Fcausal_inference_julia_code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrfiedler%2Fcausal_inference_julia_code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrfiedler%2Fcausal_inference_julia_code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrfiedler%2Fcausal_inference_julia_code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrfiedler","download_url":"https://codeload.github.com/jrfiedler/causal_inference_julia_code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrfiedler%2Fcausal_inference_julia_code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30631248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["causal-inference","causality","data-science","julia","julialang"],"created_at":"2024-09-24T22:08:28.987Z","updated_at":"2026-03-17T20:34:07.875Z","avatar_url":"https://github.com/jrfiedler.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Julia Code for _Causal Inference: What If_\n\nThis repo contains Julia code for Part II of the book _Causal Inference: What If_, by Miguel Hernán and James Robins ([book site](https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/)):\n\n\u003e Hernán MA, Robins JM (2020). _Causal Inference: What If_. Boca Raton: Chapman \u0026 Hall/CRC.\n\nThese notebooks were translated from the Python version [here](http://www.github.com/jrfiedler/causal_inference_python_code), and the code also roughly corresponds to the Stata, R, or SAS programs found at the book site.\n\nThe code in this repo has been checked against the 30 March 2021 version of the book.\n\n\n## Dependencies\n\nRequired Julia packages:\n\n- IJulia.jl\n- CSV.jl\n- DataFrames.jl\n- CategoricalArrays.jl\n- CairoMakie.jl\n- StatsBase.jl\n- GLM.jl\n- Distributions.jl\n- Roots.jl\n- Econometrics.jl\n- PyCall.jl\n\nPyCall.jl allows you to call Python code from within Julia. See [PyCall's GitHub page](https://github.com/JuliaPy/PyCall.jl) for more information, in particular about the Python installation used. Within that Python installation, you'll also need Statsmodels package. You might want to use the Conda.jl package to install Statsmodels. If you're familiar with Python and know which Python installation is being used, you can install Statsmodels in one of the usual ways.\n\n\n## Data\n\nThe data can be obtained from the [book site](https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/).\n\nThe notebooks all assume that the **CSV version** of the data has been saved in the same directory as the notebooks.\n\n\n## Author\n\nJames Fiedler\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrfiedler%2Fcausal_inference_julia_code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrfiedler%2Fcausal_inference_julia_code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrfiedler%2Fcausal_inference_julia_code/lists"}