Displaying 1 result from an estimated 1 matches for "oecdsamplepanel".
2012 Jun 24
2
Defining multiple variables in a loop
...me(cbind(country.year1, exp1, tax1, gdp1,
unemployment1))
country2.2 <- as.data.frame(cbind(country.year2, exp2, tax2, gdp2,
unemployment2))
country3.2 <- as.data.frame(cbind(country.year3, exp3, tax3, gdp3,
unemployment3))
data <- as.data.frame(rbind(country1.2, country2.2, country3.2))
OECDsamplepanel <- pdata.frame(data, index = NULL, drop = F)
plm <- plm(V5 ~ lag(V6, 1) + V3 + V4 + V5, data = OECDSamplepanel,
model = "within")
coefficients <- t(as.matrix(plm$coefficients))
fixef <- t(as.matrix(fixef(plm)))
plmcoef[i, 1:4] = coefficients
plmfixef[i, 1:3] = fixef
}