Skip to content

Instantly share code, notes, and snippets.

View tomkreker's full-sized avatar

Tom Kremer tomkreker

View GitHub Profile
##############
# QUESTION 1:
# a) replicating figure 9.7 (right panel) from Gelman et. al.
# separating treatment and control data
foo = read.csv("https://tinyurl.com/wlgl63b")
ctrl_units = foo[which(foo$treatment==0),]
trt_units = foo[which(foo$treatment==1),]