Displays summary information on fixest_multi objects in the R console.
Usage
# S3 method for class 'fixest_multi'
print(x, type = "etable", ...)
Arguments
- x
A
fixest_multi
object, obtained from afixest
estimation leading to multiple results.- type
A character either equal to
"etable"
,"short"
,"long"
,"compact"
,"se_compact"
or"se_long"
. Ifetable
, the functionetable
is used to print the result. Ifshort
, only the table of coefficients is displayed for each estimation. Iflong
, then the full results are displayed for each estimation. Ifcompact
, adata.frame
is returned with one line per model and the formatted coefficients + standard-errors in the columns. Ifse_compact
, adata.frame
is returned with one line per model, one numeric column for each coefficient and one numeric column for each standard-error. If"se_long"
, same as"se_compact"
but the data is in a long format instead of wide.- ...
Other arguments to be passed to
summary.fixest_multi
.
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
.
Examples
base = iris
names(base) = c("y", "x1", "x2", "x3", "species")
# Multiple estimation
res = feols(y ~ csw(x1, x2, x3), base, split = ~species)
# Let's print all that
res
#> x.1 x.2 x.3
#> Sample (species) setosa setosa setosa
#> Dependent Var.: y y y
#>
#> Constant 2.639*** (0.3100) 2.304*** (0.3853) 2.352*** (0.3929)
#> x1 0.6905*** (0.0899) 0.6674*** (0.0904) 0.6548*** (0.0925)
#> x2 0.2834 (0.1972) 0.2376 (0.2080)
#> x3 0.2521 (0.3469)
#> ________________ __________________ __________________ __________________
#> S.E. type IID IID IID
#> Observations 50 50 50
#> R2 0.55138 0.57026 0.57514
#> Adj. R2 0.54203 0.55197 0.54743
#>
#> x.4 x.5 x.6
#> Sample (species) versicolor versicolor versicolor
#> Dependent Var.: y y y
#>
#> Constant 3.540*** (0.5629) 2.116*** (0.4943) 1.896*** (0.5071)
#> x1 0.8651*** (0.2019) 0.2476 (0.1868) 0.3869. (0.2045)
#> x2 0.7356*** (0.1248) 0.9083*** (0.1654)
#> x3 -0.6792 (0.4354)
#> ________________ __________________ __________________ __________________
#> S.E. type IID IID IID
#> Observations 50 50 50
#> R2 0.27658 0.58413 0.60503
#> Adj. R2 0.26151 0.56644 0.57927
#>
#> x.7 x.8 x.9
#> Sample (species) virginica virginica virginica
#> Dependent Var.: y y y
#>
#> Constant 3.907*** (0.7571) 0.6248 (0.5249) 0.6999 (0.5336)
#> x1 0.9015*** (0.2531) 0.2600. (0.1533) 0.3303. (0.1743)
#> x2 0.9348*** (0.0896) 0.9455*** (0.0907)
#> x3 -0.1698 (0.1981)
#> ________________ __________________ __________________ __________________
#> S.E. type IID IID IID
#> Observations 50 50 50
#> R2 0.20906 0.76147 0.76522
#> Adj. R2 0.19258 0.75132 0.74991
#> ---
#> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1