I want to use R
to estimate a regression with a very large number of fixed effects.
I then what to use that regression to predict with a test data set.
However, this needs to be done very quickly because I want to bootstrap my standard errors and do this many times.
I know the lfe
package in R
can do this. For example
reg=felm(Y~1|F1 + F2,data=dat)
Where dat is the data, F1,F2
are columns of categorical variables (the fixed effects to be included).
predict(reg,dat2)
, however, does not work with the lfe package...as has been discussed here.
Unfortunately lm
is too slow as I have a very large numbers of fixed effects.