-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Just a thought, is it worth exposing a as(ests, "fixest_multi") function?
Adding "fixest_multi" to the class of a list of ests works (in the cases I've tried), but I'm not sure if I'm missing anything weird? Just an idea since I often times will do a map() that returns fixest objects and it'd be nice to have them all print out nicely
library(fixest)
ests <- list(
feols(mpg ~ hp, mtcars),
feols(mpg ~ hp + i(cyl), mtcars)
)
class(ests) <- c("fixest_multi", "list")
ests
#> x.1 x.2
#> Dependent Var.: mpg mpg
#>
#> Constant 30.10*** (1.634) 28.65*** (1.588)
#> hp -0.0682*** (0.0101) -0.0240 (0.0154)
#> cyl = 6 -5.968** (1.639)
#> cyl = 8 -8.521** (2.326)
#> _______________ ___________________ ________________
#> S.E. type IID IID
#> Observations 32 32
#> R2 0.60244 0.75386
#> Adj. R2 0.58919 0.72749
#> ---
#> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels