I have made this model selection table:
lm_mtcars <- lm(mpg ~ drat + hp + wt, mtcars)
library(MuMIn)
mod_sel_lm_mtcars <- (mod.sel(lm_mtcars))
mod_sel_lm_mtcars
Model selection table
(Intrc) drat hp wt df logLik AICc delta weight
lm_mtcars 29.39 1.615 -0.03223 -3.228 5 -73.366 159 0 1
I can get stargazer
to convert it to a latex table:
library(stargazer)
stargazer(mod_sel_lm_mtcars)
How can I get stargazer
to print variable names as in Coulombe Et Al 2011, p288, Table 2.
Therefore:
- df should be renamed to k (in italics)
- delta should be renamed to [latex symbol \Delta] AICc
- weight should be renamed to w[subscript i]