Skip to content

youjin1207/CausalTutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Causal Inference with R

Across public health, medicine, and social and behavioral sciences, researchers aim to answer causal questions. However, inferences about causation are challenging and require several assumptions to draw unbiased causal effects from observational data. This workshop discusses the difference between association and causation and introduces various methods to infer causal effects with observational data. We will then study R packages that implement propensity score techniques to estimate an average treatment effect – such as matching, subclassification, and inverse probability weighting. The workshop also provides several implementation options depending on the data type and the target causal effects of interest.

Usage

  • Code/lalonde_data.R: implements matching, subclassification, and inverse probability weighting to estimate the average treatment effect of a job training program on the real earnings.

  • Code/rhc_data.R: uses the propensity score methods to evaluate the average treatment effect of a right heart cathetization on death. You can download the data from the Data/ folder.

rhc = read.csv("data/rhc.csv", header = TRUE, sep = ",")

About

Causal Inference with R

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages