I can use the following code
library(fixest)
library(modelsummary)
reg1 <- feols(mpg ~ cyl , data = mtcars)
reg2 <- feols(mpg ~ cyl + wt , data = mtcars)
modelsummary(
list(reg1, reg2),
fmt = NULL,
estimate = c("{round(estimate, 3)} [my number]"),
statistic = "{round(std.error, 3)}",
coef_omit = "Intercept",
gof_omit = 'RMSE|AIC|BIC|R2|Std.Errors')
to display numbers in square brackets next to my estimates. However I want different numbers for each of the coefficient in each of the regressions. Can I do this? the estimate argument does not seem to accept vector or list inputs.
There is no built-in way to round numbers differently on a per-model basis. I don’t know any regression table package that can do that, but perhaps I’m missing something. That said, it is reasonably easy to do it semi-manually:
modelsummary_listobject.modelsummary_listobjects back to themodelsummary()function.