-
Notifications
You must be signed in to change notification settings - Fork 61
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
Inconsistent value for attr(model[["se"]], "type")
#313
Comments
Hi Vincent, Inconsistent.... it depends on the viewpoint.... In In your example, since library(fixest)
mod = feols(Euros ~ dist_km | Product + Destination + Origin, data = trade)
mod$se
#> dist_km
#> 1368.735
#> attr(,"type")
#> [1] "IID"
se(mod, "iid")
#> dist_km
#> 1368.735
se(mod, "cluster")
#> dist_km
#> 7328.605 Now comes I understand the annoyance but, from my viewpoint, this is absolutely not inconsistent. summary(mod)$se
#> dist_km
#> 7328.605
#> attr(,"type")
#> [1] "Clustered (Product)" |
Thanks Laurent, I didn't realize this was how things work, and it indeed makes a lot of sense. The fix on my side was super easy, thanks to the info above. |
attr(model[["se"]], "type")
is inconsistent with the output ofetable
. The first says “IID” but the second saysby: Product
:The text was updated successfully, but these errors were encountered: