Displaying 1 result from an estimated 1 matches for "plmcoef".
2012 Jun 24
2
Defining multiple variables in a loop
...efine a
series of variables from cross sectional units from a panel dataset.
Any help would 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....