-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
When the factor labels contain spaces, those are removed by etable(). Is it possible to preserve them?
library(fixest)
packageVersion("fixest")
#> [1] '0.13.2'
test <- data.frame(
y = 1:5,
fac = factor(c("first cat", "second cat", "first cat", "second cat", "first cat"))
)
res <- feols(y ~ fac, data = test)
etable(res)
#> res
#> Dependent Var.: y
#>
#> Constant 3.000. (1.054)
#> facsecondcat 8.88e-16 (1.667) # <<<<<<<<<<<<<<<< "facsecondcat" instead of "fac second cat"
#> _______________ ________________
#> S.E. type IID
#> Observations 5
#> R2 0e-16
#> Adj. R2 -0.33333
#> ---
#> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
res <- feols(y ~ i(fac, ref = "first cat"), data = test)
etable(res)
#> res
#> Dependent Var.: y
#>
#> Constant 3.000. (1.054)
#> fac = secondcat 8.88e-16 (1.667) # <<<<<<<<<<<<<<<< "secondcat" instead of "second cat"
#> _______________ ________________
#> S.E. type IID
#> Observations 5
#> R2 0e-16
#> Adj. R2 -0.33333
#> ---
#> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1Thanks again for this awesome package!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels