I am using the lfe package in R to do some regression with lots of fixed effects, so direct lm is out of the question (and since the fixed effects are not individual-level, so is plm). I get the output with no problems but now I’d like to use it in a LaTeX table. However, none of the packages I tried (like xtable, apsrtable, the latex command in Hmisc and so on) have methods for objects of class felm. So my question is, what do I do? Is there a way to access the lm.method and twist it so it can read felm objects? Is there a way to coerce felm objects into lm form? Any ideas?
I am using the lfe package in R to do some regression with lots
Share
It is possible that doing some transplant surgery on the felm-object will succeed. Determining whether creation of such a chimera is not doing violence to important underlying assumptions is your responsibility:
Before doing that class engraftment, I did look at the felm-object to see if it resembled an lm-object and it did. It also appears that
summary(est)returns the output that would be expected by a user of lm. (This does not actually do what you asked. The only thing it does is allow lm-targetted functions to attempt to do their work.)I’m not a particularly successful user of S4 methods but following a couple of links in the help page and making mods this is what I got after ignoring the warning: