style.df | R Documentation |
This function describes the style of data.frames created with the function etable
.
style.df(
depvar.title = "Dependent Var.:",
fixef.title = "Fixed-Effects:",
fixef.line = "-",
fixef.prefix = "",
fixef.suffix = "",
slopes.title = "Varying Slopes:",
slopes.line = "-",
slopes.format = "__var__ (__slope__)",
stats.title = "_",
stats.line = "_",
yesNo = c("Yes", "No"),
headers.sep = TRUE,
signif.code = c(`***` = 0.001, `**` = 0.01, `*` = 0.05, . = 0.1),
interaction.combine = " x ",
i.equal = " = ",
default = FALSE
)
depvar.title |
Character scalar. Default is |
fixef.title |
Character scalar. Default is |
fixef.line |
A single character. Default is |
fixef.prefix |
Character scalar. Default is |
fixef.suffix |
Character scalar. Default is |
slopes.title |
Character scalar. Default is |
slopes.line |
Character scalar. Default is |
slopes.format |
Character scalar. Default is |
stats.title |
Character scalar. Default is |
stats.line |
Character scalar. Default is |
yesNo |
Character vector of length 1 or 2. Default is |
headers.sep |
Logical, default is |
signif.code |
Named numeric vector, used to provide the significance codes with respect to
the p-value of the coefficients. Default is |
interaction.combine |
Character scalar, defaults to |
i.equal |
Character scalar, defaults to |
default |
Logical, default is |
@inheritParams etable
The title elements (depvar.title
, fixef.title
, slopes.title
and stats.title
) will be the
row names of the returned data.frame. Therefore keep in mind that any two of them should not be
identical (since identical row names are forbidden in data.frames).
It returns an object of class fixest_style_df
.
# 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)
# Default result
etable(est)
# Playing a bit with the styles
etable(est, style.df = style.df(fixef.title = "", fixef.suffix = " FE",
stats.line = " ", yesNo = "yes"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.