Displaying 1 result from an estimated 1 matches for "country3".
Did you mean:
country
2012 Jun 24
2
Defining multiple variables in a loop
...array to store
regression coefficients
plmfixef <- array(0, c(1000, 3)) #creates an empty array to store
fixed effects intercepts from regressions
for (i in 1:1000) {
country1 <- as.data.frame(subset(OECDFiscal2, Country == 1))
country2 <- as.data.frame(subset(OECDFiscal2, Country == 2))
country3 <- as.data.frame(subset(OECDFiscal2, Country == 3))
exp1 <- as.matrix(sample(country1$lagexpVSgdp, size =
(nrow(country1)), replace = T))
exp2 <- as.matrix(sample(country2$lagexpVSgdp, size =
(nrow(country2)), replace = T))
exp3 <- as.matrix(sample(country3$lagexpVSgdp, size =
(nrow(co...