models function

Extracts the models tree from a fixest_multi object

Extracts the models tree from a fixest_multi object

Extracts the meta information on all the models contained in a fixest_multi estimation.

models(x, simplify = FALSE)

Arguments

  • x: A fixest_multi object, obtained from a fixest estimation leading to multiple results.
  • simplify: Logical, default is FALSE. The default behavior is to display all the meta information, even if they are identical across models. By using simplify = TRUE, only the information with some variation is kept.

Returns

It returns a data.frame whose first column (named id) is the index of the models and the other columns contain the information specific to each model (e.g. which sample, which RHS, which dependent variable, etc).

Examples

# a multiple estimation base = setNames(iris, c("y", "x1", "x2", "x3", "species")) est = feols(y ~ csw(x.[, 1:3]), base, fsplit = ~species) # All the meta information models(est) # Illustration: Why use simplify est_sub = est[sample = 2] models(est_sub) models(est_sub, simplify = TRUE)

See Also

multiple estimations in feols, n_models