Skip to content

Docs: Sun Abraham Aggregation with Weights #578

@s3alfisc

Description

@s3alfisc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions