Style definitions for Latex tables
This function describes the style of Latex tables to be exported with the function etable
.
style.tex( main = "base", depvar.title, model.title, model.format, line.top, line.bottom, var.title, fixef.title, fixef.prefix, fixef.suffix, fixef.where, slopes.title, slopes.format, fixef_sizes.prefix, fixef_sizes.suffix, stats.title, notes.title, tablefoot, tablefoot.title, tablefoot.value, yesNo, tabular = "normal", interaction.combine = " $\\times$ ", i.equal = " $=$ " )
main |
Either "base", "aer" or "qje". Defines the basic style to start from. The styles "aer" and "qje" are almost identical and only differ on the top/bottom lines. |
depvar.title |
A character scalar. The title of the line of the dependent variables (defaults to |
model.title |
A character scalar. The title of the line of the models (defaults to |
model.format |
A character scalar. The value to appear on top of each column. It defaults to |
line.top |
A character scalar. The line at the top of the table (defaults to |
line.bottom |
A character scalar. The line at the bottom of the table (defaults to |
var.title |
A character scalar. The title line appearing before the variables (defaults to |
fixef.title |
A character scalar. The title line appearing before the fixed-effects (defaults to |
fixef.prefix |
A prefix to add to the fixed-effects names. Defaults to |
fixef.suffix |
A suffix to add to the fixed-effects names. Defaults to |
fixef.where |
Either "var" or "stats". Where to place the fixed-effects lines? Defaults to |
slopes.title |
A character scalar. The title line appearing before the variables with varying slopes (defaults to |
slopes.format |
Character scalar representing the format of the slope variable name. There are two special characters: "__var__" and "__slope__", placeholers for the variable and slope names. Defaults to |
fixef_sizes.prefix |
A prefix to add to the fixed-effects names. Defaults to |
fixef_sizes.suffix |
A suffix to add to the fixed-effects names. Defaults to |
stats.title |
A character scalar. The title line appearing before the statistics (defaults to |
notes.title |
A character scalar. The title appearing just before the notes, defaults to |
tablefoot |
A logical scalar. Whether or not to display a footer within the table. Defaults to |
tablefoot.title |
A character scalar. Only if |
tablefoot.value |
A character scalar. The notes to be displayed in the footer. Defaults to |
yesNo |
A character vector of length 1 or 2. Defaults to |
tabular |
Character scalar equal to "normal" (default), "*" or "X". Represents the type of tabular to export. |
interaction.combine |
Character scalar, defaults to |
i.equal |
Character scalar, defaults to |
The \checkmark
command, used in the "aer" style (in argument yesNo
), is in the amssymb
package.
The commands \toprule
, \midrule
and \bottomrule
are in the booktabs
package. You can set the width of the top/bottom rules with \setlength\heavyrulewidth{wd}, and of the midrule with \setlength\lightrulewidth{wd}.
Note that all titles (depvar.title
, depvar.title
, etc) are not escaped, so they must be valid Latex expressions.
Returns a list containing the style parameters.
# Multiple estimations => see details in feols aq = airquality est = feols(c(Ozone, Solar.R) ~ Wind + csw(Temp, Temp^2, Temp^3) | Month + Day, data = aq) # Playing a bit with the styles etable(est, tex = TRUE) etable(est, tex = TRUE, style.tex = style.tex("aer")) etable(est, tex = TRUE, style.tex = style.tex("aer", var.title = "\\emph{Expl. Vars.}", model.format = "[i]", yesNo = "x", tabular = "*"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.