-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: supporting fixtest
objects
#785
Comments
@IndrajeetPatil, thanks for requesting this! |
@karldw Please feel free to make a PR here if you wish. This will be a good addition to the current collection of |
Just to let you know I've started working on this here: https://github.com/grantmcdermott/broom/tree/fixest-tidiers I've added a FWIW, since fixest follows a particular protocol for recovering different SE estimates — which further implies, for example, that
Example: > library(fixest)
> gravity <- feols(log(Euros) ~ log(dist_km) | Origin + Destination + Product + Year, trade)
>
> tidy(gravity, conf.int = T)
# A tibble: 1 x 7
term estimate std.error statistic p.value conf.low conf.high
<chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 log(dist_km) -2.17 0.0209 -104. 0 -2.21 -2.13
>
> ## To get robust or clustered SEs, users can either:
>
> ## 1) Feed tidy() a summary.fixest object that has accepted these arguments
> gravity_summ <- summary(gravity, cluster = c("Product", "Year"))
> tidy(gravity_summ, conf.int = T)
# A tibble: 1 x 7
term estimate std.error statistic p.value conf.low conf.high
<chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 log(dist_km) -2.17 0.0743 -29.2 3.02e-187 -2.32 -2.02
>
> ## 2) Or, specify the arguments directly in the tidy() call
> tidy(gravity, conf.int = T, cluster = c("Product", "Year"))
# A tibble: 1 x 7
term estimate std.error statistic p.value conf.low conf.high
<chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 log(dist_km) -2.17 0.0743 -29.2 3.02e-187 -2.32 -2.02 |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Created on 2019-11-19 by the reprex package (v0.3.0)
Session info
The text was updated successfully, but these errors were encountered: