Generate formatted regression tables
Usage
summary_table(
...,
coef_digits = 3,
se_digits = 3,
stars = TRUE,
latex = FALSE,
model_names = NULL
)
Arguments
- ...
One or more model objects of
felm
orfeglm
class.- coef_digits
Number of digits for coefficients. The default is 3.
- se_digits
Number of digits for standard errors. The default is 3.
- stars
Whether to include significance stars. The default is
TRUE
.- latex
Whether to output as LaTeX code. The default is
FALSE
.- model_names
Optional vector of custom model names
Examples
m1 <- felm(mpg ~ wt | cyl, mtcars)
m2 <- fepoisson(mpg ~ wt | cyl, mtcars)
summary_table(m1, m2, model_names = c("Linear", "Poisson"))
#> | Variable | Linear | Poisson |
#> |------------------|---------------------|-------------------|
#> | wt | -3.206*** | -0.180* |
#> | | (0.295) | (0.072) |
#> | | | |
#> | Fixed effects | | |
#> | cyl | Yes | Yes |
#> | | | |
#> | N | 32 | 32 |
#> | R-squared | 0.837 | 0.616 |
#>
#> Standard errors in parenthesis
#> Significance levels: *** p < 0.001; ** p < 0.01; * p < 0.05; . p < 0.1