I am running some fixed effect regressions with robust stadard errors. And I would like to get them into LATEX format with the stargazer package. Does anyone know how this works in a simple efficient way?
My code for the regressions looks like the following:
library(plm)
panel_data <- pdata.frame(data, index = c("country","time"))
FE_model <- plm(Y~X+Z, data = panel_data, model = "within", effect = "twoway")
my code for the standard errors is this:
library(lmtest)
coeftest(FE_model, vcov.=vcovHC(FE_model, method = c("arellano")))
and the code I previously used with the stargazer package looks like this:
stargazer(FE_model_1,FE_model_2,FE_model_3, title="FE_model_Results",
align=TRUE,
omit.stat=c("LL","ser","f"), no.space = TRUE)
so this would only give me the output of the regressions with normal standard errors, but I would like to use the robust ones.