sub-sub-.fixest_multi: Extracts one element from a 'fixest_multi' object

Description Usage Arguments Value See Also Examples

Description

Extracts single elements from multiple fixest estimations.

Usage

1
2
## S3 method for class 'fixest_multi'
x[[i]]

Arguments

x

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

i

An integer scalar. The identifier of the estimation to extract.

Value

A fixest object is returned.

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
 9
10
11
base = iris
names(base) = c("y", "x1", "x2", "x3", "species")

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

# The first estimation
res[[1]]

# The second one, etc
res[[2]]

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