-
Notifications
You must be signed in to change notification settings - Fork 74
Docs: Sun Abraham Aggregation with Weights #578
Description
Hi @ the fixest team,
Over at pyfixest, @shapiromh is working towards adding weights to the Sun-Abraham estimation routine's aggregation method that is modeled afterfixest::aggregate().
fixest::aggregate()'s doc has a use_weights function argument that is explained in the docs as "Logical, default is TRUE. If the estimation was weighted, whether the aggregation should take into account the weights. Basically if the weights reflected frequency it should be TRUE."
So whenever a user is supplying weights for a sunab estimation, fixest defaults to frequency weights in the aggregation step. This is also conformed by taking a look at the code.
But does the feols(sunab()) call with weights not produce a vcov based on a precision weight interpretation? I.e. the number of observations used is N = dim(data)[0] and not N = sum(weights), producing an inconsistency with the aggregation / using a mis-computed vcov?
I have a hunch that @grantmcdermott might have thought about this before, so I am shamelessly tagging you =)
Any help or pointers are much appreciated!
Best, ALex