search for: lagexpvsgdp

Displaying 1 result from an estimated 1 matches for "lagexpvsgdp".

2012 Jun 24
2
Defining multiple variables in a loop
...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(country3)), replace = T)) tax1 <- as.matrix(sample(country1$lagtaxVSgdp1, size = (nrow(country1)), repl...