as.list.fixest_multi: Transforms a fixest_multi object into a list

Description Usage Arguments Value See Also Examples

View source: R/fixest_multi.R

Description

Extracts the results from a fixest_multi object and place them into a list.

Usage

1
2
## S3 method for class 'fixest_multi'
as.list(x, ...)

Arguments

x

A fixest_multi object, obtained from a fixest estimation leading to multiple results.

...

Not currently used.

Value

Returns a list containing all the results of the multiple estimations.

See Also

The main fixest estimation functions: feols, fepois, fenegbin, feglm, feNmlm. Tools for mutliple fixest estimations: summary.fixest_multi, print.fixest_multi, as.list.fixest_multi, sub-sub-.fixest_multi, sub-.fixest_multi, cash-.fixest_multi.

Examples

1
2
3
4
5
6
7
8
base = iris
names(base) = c("y", "x1", "x2", "x3", "species")

# Multiple estimation
res = feols(y ~ csw(x1, x2, x3), base, split = ~species)

# All the results at once
as.list(res)

fixest documentation built on June 19, 2021, 5:06 p.m.