# causalinferencebook_stata **Repository Path**: wang_kevin_hong/causalinferencebook_stata ## Basic Information - **Project Name**: causalinferencebook_stata - **Description**: Stata code for part 2 of the book Causal Inference, by Miguel Hernán and James Robins - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 76 - **Created**: 2020-04-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # _Causal Inference_ Stata Code This repo contains Stata code for 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/). The code here corresponds to the SAS programs found at the book site. ## Data The data can be obtained from the [book site](https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/). The do files all assume that the Stata version of the data (.dta) has been saved in the same directory as the do files. To automatically set the working directory, open Stata by directly double-clicking on the do files. If you open the do files from within Stata you will need to set the working directory manually: before running the command: use "nhefs.dta" add your path (eg. use "C:\Users\Downloads\nhefs.dta") ## Author Ellie Murray