lrberge / fixest

Fixed-effects estimations
https://lrberge.github.io/fixest/
362 stars 59 forks source link

Is it possible to have `signif.code` in `setFixest_etable()`? #389

Closed etiennebacher closed 1 year ago

etiennebacher commented 1 year ago

It's currently not in the list of options:

library(fixest)
packageVersion("fixest")
#> [1] '0.11.1'

res = feols(Sepal.Length ~ Petal.Length | Species[Sepal.Width], iris)
etable(res, signif.code = c("***" = 0.01, "**" = 0.05, "*" = 0.10))
#>                                     res
#> Dependent Var.:            Sepal.Length
#>                                        
#> Petal.Length          0.8220** (0.1006)
#> Fixed-Effects:        -----------------
#> Species                             Yes
#> Varying Slopes:       -----------------
#> Sepal.Width (Species)               Yes
#> _____________________ _________________
#> S.E.: Clustered             by: Species
#> Observations                        150
#> R2                              0.86883
#> Within R2                       0.51874
#> ---
#> Signif. codes: 0 '***' 0.01 '**' 0.05 '*' 0.1 ' ' 1

fixest::setFixest_etable(signif.code = c("***" = 0.01, "**" = 0.05, "*" = 0.10))
#> Error in fixest::setFixest_etable(signif.code = c(`***` = 0.01, `**` = 0.05, : unused argument (signif.code = c(`***` = 0.01, `**` = 0.05, `*` = 0.1))

Thanks again for this package, it's really amazing

etiennebacher commented 1 year ago

Sorry, it can be done with fixest::setFixest_etable(style.df = style.df(signif.code = c("***" = 0.01, "**" = 0.05, "*" = 0.10)))