Skip to contents

Use this function to change the default behavior of fixest_multi objects.

Usage

setFixest_multi(drop = FALSE)

getFixest_multi()

Arguments

drop

Logical scalar, default is FALSE. Provides the default value of the argument drop when subsetting fixest_multi objects.

Value

The function getFixest_multi() returns the list of settings.

Examples


# 1) let's run a multiple estimation
base = setNames(iris, c("y", "x1", "x2", "x3", "species"))
est = feols(y ~ csw(x1, x2, x3), base)

# 2) let's pick a single estimation => by default we have a `fixest_multi` object
class(est[rhs = 2])
#> [1] "fixest_multi"

# `drop = TRUE` would have led to a `fixest` object
class(est[rhs = 2, drop = TRUE])
#> [1] "fixest"

# 3) change the default behavior
setFixest_multi(drop = TRUE)
class(est[rhs = 2])
#> [1] "fixest"