All Projects → remlapmot → cibookex-r

remlapmot / cibookex-r

Licence: GPL-3.0 license
Causal Inference: What If. R and Stata code for Exercises

Programming Languages

RMarkdown
6 projects

Projects that are alternatives of or similar to cibookex-r

Dowhy
DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.
Stars: ✭ 3,480 (+6344.44%)
Mutual labels:  causal-inference
perfect match
➕➕ Perfect Match is a simple method for learning representations for counterfactual inference with neural networks.
Stars: ✭ 100 (+85.19%)
Mutual labels:  causal-inference
policytree
Policy learning via doubly robust empirical welfare maximization over trees
Stars: ✭ 59 (+9.26%)
Mutual labels:  causal-inference
Causalml
Uplift modeling and causal inference with machine learning algorithms
Stars: ✭ 2,499 (+4527.78%)
Mutual labels:  causal-inference
cfvqa
[CVPR 2021] Counterfactual VQA: A Cause-Effect Look at Language Bias
Stars: ✭ 96 (+77.78%)
Mutual labels:  causal-inference
causeinfer
Machine learning based causal inference/uplift in Python
Stars: ✭ 45 (-16.67%)
Mutual labels:  causal-inference
cobalt
Covariate Balance Tables and Plots - An R package for assessing covariate balance
Stars: ✭ 52 (-3.7%)
Mutual labels:  causal-inference
drtmle
Nonparametric estimators of the average treatment effect with doubly-robust confidence intervals and hypothesis tests
Stars: ✭ 14 (-74.07%)
Mutual labels:  causal-inference
causalnlp
CausalNLP is a practical toolkit for causal inference with text as treatment, outcome, or "controlled-for" variable.
Stars: ✭ 98 (+81.48%)
Mutual labels:  causal-inference
RECCON
This repository contains the dataset and the PyTorch implementations of the models from the paper Recognizing Emotion Cause in Conversations.
Stars: ✭ 126 (+133.33%)
Mutual labels:  causal-inference
Coz
Coz: Causal Profiling
Stars: ✭ 2,719 (+4935.19%)
Mutual labels:  causal-inference
tlverse-handbook
🎯 📕 Targeted Learning in R: A Causal Data Science Handbook
Stars: ✭ 50 (-7.41%)
Mutual labels:  causal-inference
causal-ml
Must-read papers and resources related to causal inference and machine (deep) learning
Stars: ✭ 387 (+616.67%)
Mutual labels:  causal-inference
Pgmpy
Python Library for learning (Structure and Parameter) and inference (Probabilistic and Causal) in Bayesian Networks.
Stars: ✭ 1,942 (+3496.3%)
Mutual labels:  causal-inference
SyntheticControlMethods
A Python package for causal inference using Synthetic Controls
Stars: ✭ 90 (+66.67%)
Mutual labels:  causal-inference
causaldag
Python package for the creation, manipulation, and learning of Causal DAGs
Stars: ✭ 82 (+51.85%)
Mutual labels:  causal-inference
CausalInferenceIntro
Causal Inference for the Brave and True的中文翻译版。全部代码基于Python,适用于计量经济学、量化社会学、策略评估等领域。英文版原作者:Matheus Facure
Stars: ✭ 207 (+283.33%)
Mutual labels:  causal-inference
evalsp20.classes.andrewheiss.com
🎓 GSU MPA/MPP course on program evaluation and causal inference
Stars: ✭ 22 (-59.26%)
Mutual labels:  causal-inference
CausalityTools.jl
Algorithms for causal inference and the detection of dynamical coupling from time series, and for approximation of the transfer operator and invariant measures.
Stars: ✭ 45 (-16.67%)
Mutual labels:  causal-inference
SIN
Causal Effect Inference for Structured Treatments (SIN) (NeurIPS 2021)
Stars: ✭ 32 (-40.74%)
Mutual labels:  causal-inference

Repository of R and Stata code for the exercises in Causal Inference: What If by Hernán and Robins

  • The R code by Joy Shi and Sean McGrath is available here
  • The Stata code by Eleanor Murray and Roger Logan is available here
  • The book by by Hernán MA and Robins JM is available here
  • These files are rendered using bookdown.

Install dependencies

  • If you have downloaded/forked this repository you can install the R dependencies with (assuming your working directory is at the top level of the repo):
    # install.packages("devtools") # uncomment if devtools not installed
    devtools::install_dev_deps()
  • You can install the Stata dependencies, in Stata, with
    do depdendency

Building the book

  • If you need to install LaTeX, in R install the tinytex package (which is included in the dependencies) and run

    tinytex::install_tinytex()
  • Render all formats

    rmarkdown::render_site(encoding = 'UTF-8')
  • Render the PDF book

    rmarkdown::render_site(output_format = 'bookdown::pdf_book', encoding = 'UTF-8')
  • Render the HTML book

    rmarkdown::render_site(output_format = 'bookdown::gitbook_book', encoding = 'UTF-8')
  • Render the EPUB book

    rmarkdown::render_site(output_format = 'bookdown::epub_book', encoding = 'UTF-8')
  • Preview a specific chapter

    bookdown::preview_chapter("chapter-filename.Rmd")
  • To build the chapters containing Stata code:

    • You need Stata installed on your machine.
    • Running devtools::install_dev_deps() should install the Statamarkdown package by Doug Hemken.
    • The Statamarkdown package needs to be able to find your installed Stata.
    • In Stata, install the Stata dependencies, in Stata, with: do dependency.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].