Displaying 1 result from an estimated 1 matches for "plmfixef".
2012 Jun 24
2
Defining multiple variables in a loop
...d be much appreciated.
Thanks,
Taylor White
UCLA
######Bootstrapping panel data by hand. ?Create 4 variables from 3
subsets of the original data. Resample each variable and recombine
into one matrix.
plmcoef <- array(0, c(1000, 4)) #creates an empty 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...