fixest icon indicating copy to clipboard operation
fixest copied to clipboard

Inconsistencies in Printout of Interaction Terms

Open SebKrantz opened this issue 1 year ago • 0 comments

Minor point, but I would have expected the interaction term to be on the same line:

library(fixest)
#> Warning: package 'fixest' was built under R version 4.3.3
ols <- feols(mpg ~ carb + carb:vs | cyl + am, data = mtcars)
iv <- feols(mpg ~ 0 | cyl + am | carb + carb:vs ~ wt + qsec, data = mtcars)
etable(ols, iv)
#>                              ols             iv
#> Dependent Var.:              mpg            mpg
#>                                                
#> carb            -1.255* (0.1876) -3.594 (1.454)
#> carb x vs       0.6035. (0.1408)               
#> carb:vs                           15.18 (37.67)
#> Fixed-Effects:  ---------------- --------------
#> cyl                          Yes            Yes
#> am                           Yes            Yes
#> _______________ ________________ ______________
#> S.E.: Clustered          by: cyl        by: cyl
#> Observations                  32             32
#> R2                       0.81697        -2.4931
#> Within R2                0.22076        -13.872
#> ---
#> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Created on 2024-09-17 with reprex v2.0.2

Thanks to whoever has time to look at this. Might do it myself at some point but quite busy currently. Cheers.

SebKrantz avatar Sep 17 '24 14:09 SebKrantz