Learn R Programming

fixest (version 0.10.4)

$.fixest_multi: Extracts the root of a fixest_multi object

Description

Extracts an element at the root of a fixest_multi object.

Usage

# S3 method for fixest_multi
$(x, name)

Value

It either returns a fixest_multi object or a fixest object it there is only one estimation associated to the root element.

Arguments

x

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

name

The name of the root element to select.

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

Run this code

base = iris
names(base) = c("y", "x1", "x2", "x3", "species")

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

# Let's the results for the setosa species
res$setosa

# now for versicolor
etable(res$versicolor)

Run the code above in your browser using DataLab