n_models | R Documentation |
fixest_multi
objectsOtabin the number of unique models of a fixest_multi
object, depending on the
type requested.
n_models(
x,
lhs = FALSE,
rhs = FALSE,
sample = FALSE,
fixef = FALSE,
iv = FALSE
)
x |
A |
lhs |
Logical scalar, default is |
rhs |
Logical scalar, default is |
sample |
Logical scalar, default is |
fixef |
Logical scalar, default is |
iv |
Logical scalar, default is |
It returns an integer scalar. If no argument is provided, the total number of models is returned.
Multiple estimations in feols
, models
base = setNames(iris, c("y", "x1", "x2", "x3", "species"))
est = feols(y ~ csw(x1, x2, x3), base, fsplit = ~species)
# there are 3 different RHSs and 4 different samples
models(est)
# We can obtain these numbers with n_models
n_models(est, rhs = TRUE)
n_models(est, sample = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.