View source: R/summary_table.R
| summary_table | R Documentation |
Generate formatted regression tables
summary_table(
...,
coef_digits = 3,
se_digits = 3,
stars = TRUE,
latex = FALSE,
model_names = NULL,
caption = NULL,
label = NULL,
position = "htbp"
)
... |
One or more model objects of |
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 |
latex |
Whether to output as LaTeX code. The default is |
model_names |
Optional vector of custom model names |
caption |
Optional caption for the table (LaTeX only) |
label |
Optional label for cross-referencing (LaTeX only) |
position |
LaTeX float position specifier (LaTeX only). The default is
|
A formatted table
ross2004_subset <- ross2004[ross2004$year == 1999 &
ross2004$ltrade > quantile(ross2004$ltrade, 0.75), ]
m1 <- felm(ltrade ~ ldist | ctry1, ross2004_subset)
m2 <- fepoisson(ltrade ~ ldist | ctry1, ross2004_subset)
summary_table(m1, m2, model_names = c("Linear", "Poisson"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.