# 第2章 デザイン # 第1節 実験 # 福元健太郎 # データは次の論文と、その再現ファイルを元に作成 # Imai, Kosuke, Gary King, and Clayton Nall. 2009. # "The Essential Role of Pair Matching in Cluster-Randomized Experiments, # with Application to the Mexican Universal Health Insurance Evaluation." # Statistical Science 24(1): 29-53. # Replication data # http://hdl.handle.net/1902.1/11047 # データの読み込み data <- read.csv("experiment.csv") attach(data) # 分析は次の論文の一部を再現 # Imai, Kosuke. 2008. # "Variance Identification and Efficiency Analysis # in Randomized Experiments under the Matched-Pair Design." # Statistics in Medicine 27(24): 4857-4873. lm.out <- lm(outcome ~ treatment) summary(lm.out)