Displaying 1 result from an estimated 1 matches for "pop1500".
Did you mean:
op1500
2017 Aug 03
0
Results of vcovCL (sandwich) and of cluster() in Stata
...ww.jaredcrubin.com/research)
To make the regression, he uses (as far as I can understand the stata
code) the following command:
local conditions "city != "Mainz" & city != "Wittenberg" & city != "Z?rich""
reg prot1530 press if `conditions' & pop1500 != ., noconstant robust cluster(territory)
I'm trying to translate this into R-code doing the following:
library(foreign)
library(dplyr)
library(lmtest)
library(sandwich)
# the data are here:
# https://drive.google.com/file/d/0B_QoCd-1jkVXRGdUMTlkYTNiNGc/edit?usp=sharing
cities <- read.d...