if (FALSE) {
# To reduce run time, we keep only countries in the Americas:
americas <- countries$iso[countries$region == "Americas"]
test <- penhdfeppml_cluster(data = trade[, -(5:6)],
dep = "export",
fixed = list(c("exp", "time"),
c("imp", "time"),
c("exp", "imp")),
cluster = c("exp", "imp"),
selectobs = (trade$imp %in% americas) & (trade$exp %in% americas),
tol = 1e-5, hdfetol = 1e-1)
}
Run the code above in your browser using DataLab