Displaying 1 result from an estimated 1 matches for "1jkvxrgdumtlkytningc".
2017 Aug 03
0
Results of vcovCL (sandwich) and of cluster() in Stata
...uot;
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.dta("data/Printing_and_Protestants_Data-ReStat.dta")
# we filter the data
cities <- filter(cities, !is.na(pop1500))
cities <- filter(cities, city != "Z?rich" & city != "Mainz" &
city != "Wittenberg")
# the mo...