lrberge / fixest

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

`mvsw` (multiverse stepwise) is not exported/documented #425

Closed grantmcdermott closed 5 months ago

grantmcdermott commented 1 year ago

Just noticed when I was looking at the stepwise reference page on the website. Typing ?mvsw into the console also draws a blank.

The function itself is working nicely, though ;-)

library(fixest)

etable(feols(mpg ~ wt | mvsw(am, cyl), mtcars))
#>                 feols(mpg ~ wt ..1 feols(mpg ~..2 feols(mpg ~..3 feols(mpg ~..4
#> Dependent Var.:                mpg            mpg            mpg            mpg
#>                                                                                
#> Constant          37.29*** (1.878)                                             
#> wt              -5.344*** (0.5591) -5.353 (2.282) -3.206 (1.209) -3.150 (1.498)
#> Fixed-Effects:  ------------------ -------------- -------------- --------------
#> am                              No            Yes             No            Yes
#> cyl                             No             No            Yes            Yes
#> _______________ __________________ ______________ ______________ ______________
#> S.E. type                      IID         by: am        by: cyl         by: am
#> Observations                    32             32             32             32
#> R2                         0.75283        0.75283        0.83743        0.83751
#> Within R2                       --        0.61393        0.39236        0.30824
#> ---
#> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Related: #226.

lrberge commented 5 months ago

Thanks Grant, now fixed!