Lgdp = Log GDP per capita in 1995 Prot = protection against risk of expropriation index as a proxy for institutions (e.g., property rights and checks against government power) Logmort = Log settler mortality
1. Regress the log GDP per capita on the average protection against expropriation risk.
second_stage <-lm(lgdp ~ fs_resid, data = ajr_df)summary(second_stage)
Call:
lm(formula = lgdp ~ fs_resid, data = ajr_df)
Residuals:
Min 1Q Median 3Q Max
-2.54288 -0.66451 -0.03718 0.75594 2.02504
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 8.0622 0.1234 65.33 <2e-16 ***
fs_resid -0.3397 0.1175 -2.89 0.0053 **
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 0.9873 on 62 degrees of freedom
Multiple R-squared: 0.1187, Adjusted R-squared: 0.1045
F-statistic: 8.353 on 1 and 62 DF, p-value: 0.005299
5. Compute a 2SLS regression of log GDP per capita on the average expropriation risk, using settler mortality as an instrumental variable
mod_iv <-ivreg(lgdp ~ prot | logmort, data = ajr_df)summary(mod_iv)
Call:
ivreg(formula = lgdp ~ prot | logmort, data = ajr_df)
Residuals:
Min 1Q Median 3Q Max
-2.40124 -0.55430 0.07021 0.66539 1.64168
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 2.0869 0.9853 2.118 0.0382 *
prot 0.9171 0.1502 6.106 7.35e-08 ***
Diagnostic tests:
df1 df2 statistic p-value
Weak instruments 1 62 23.82 7.76e-06 ***
Wu-Hausman 1 61 21.23 2.13e-05 ***
Sargan 0 NA NA NA
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 0.9223 on 62 degrees of freedom
Multiple R-Squared: 0.231, Adjusted R-squared: 0.2186
Wald test: 37.29 on 1 and 62 DF, p-value: 7.354e-08
Part 2
We will use mdve.dta, which contains the case-level information. fail = A dummy variable for re-occurrence of a domestic assault within 6 months z_coddle = A dummy variable to indicate that the random assignment is advice or separate d_coddle = A dummy variable to indicate that the delivered assignment is advice or separate
1. Estimate the effect of coddle on recidivism by the OLS estimation of the equation
mod_4 <-lm(fail ~ d_coddle, data = mdve_df)modelsummary(mod_4, stars =TRUE)
(1)
(Intercept)
0.147***
(0.025)
d_coddle
0.112*
(0.048)
Num.Obs.
314
R2
0.017
R2 Adj.
0.014
AIC
288.6
BIC
299.8
Log.Lik.
−141.290
F
5.496
RMSE
0.38
+ p < 0.1, * p < 0.05, ** p < 0.01, *** p < 0.001
2. Estimate the first-stage effect of the coddle assignment on delivering coddle by estimating
mod_5 <-lm(d_coddle ~ z_coddle, data = mdve_df)modelsummary(mod_5, stars =TRUE)
(1)
(Intercept)
0.011
(0.043)
z_coddle
0.386***
(0.052)
Num.Obs.
314
R2
0.152
R2 Adj.
0.149
AIC
344.9
BIC
356.2
Log.Lik.
−169.471
F
55.748
RMSE
0.42
+ p < 0.1, * p < 0.05, ** p < 0.01, *** p < 0.001
3. Estimate the intention-to-treatment (ITT) effect of coddle relative to arrest by estimating:
mod_6 <-lm(fail ~ z_coddle, data = mdve_df)modelsummary(mod_6, stars =TRUE)