Hi
I have been using stargazer and texreg to display tables of regression models. This has 90% worked, but to modify the tables often takes futzing with and editing the outputted HTML or LaTeX. Given some of the potential to make data frames look great in RMD documents (e.g., with kable()
, kableExtra, flextable, gt) does anyone know if there is a package or function that can input a list of models and output a dataframe of the coefficients and model-level summary measures?
For example, the output could look like this:
term Model 1 Model 2 Model 3 Model 4
1 (Intercept) -86.08<br/>(13.68) -366.34<br/>(98.62) 65.27<br/>(3.25) -79.9<br/>(13.63)
2 sat 13.35<br/>(1.24) 62.72<br/>(17.27) <NA> 13.02<br/>(1.22)
3 I(sat^2) <NA> -2.15<br/>(0.75) <NA> <NA>
4 public <NA> <NA> -14.24<br/>(5.91) 15.71<br/>(33.45)
5 public:sat <NA> <NA> <NA> -2.24<br/>(3.1)
6 r.squared 0.79 0.835 0.158 0.845
7 sigma 7.79 7.02 15.61 6.91
8 AICc 233.9 228.5 279.8 229.2