as_tibble.fixest_multi | R Documentation |
fixest_multi
object to a nested tibbleConvert a fixest_multi
object to a nested tibble, allowing easy
tidying of the models.
## S3 method for class 'fixest_multi'
as_tibble(x)
x |
A |
Only an as_tibble
method is provided, no as.data.frame
because
printing lists in a data.frame is often problematic.
fixest::models()
, which is used internally, always returns a
data.frame.
A tibble with model parameters and model IDs as columns and a list
column model
with all models from x
. Note that the tibble will
not contain columns for parameters which do not vary within x
(see examples).
# Results only in an `lhs` column
m1 <- fixest::feols(c(mpg, qsec) ~ wt, data = mtcars)
tibble::as_tibble(m1)
# Results only in an `rhs` column
m2 <- fixest::feols(mpg ~ csw(wt, disp), data = mtcars)
tibble::as_tibble(m2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.