Skip to content
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

Recovering full variance-covariance matrix of estimated fixed effects #29

Open
justinekn opened this issue May 6, 2020 · 0 comments
Open

Comments

@justinekn
Copy link

justinekn commented May 6, 2020

Hi,

In a model with two dimensions of fixed effects (seller.f and buyer.f), I am interested in recovering Var(seller_i), Var(buyer_i), and Cov(seller_i, buyer_i) for all observations (i).

I have been able to recover Var(seller_i) and Var(buyer_i) thanks to the option se=TRUE which allows to recover the standard errors of the estimated fixed effects by bootstrap:

est3 <- felm(d_vat ~ period.f | seller.f + buyer.f, data=akm, keepX=TRUE)
beta3 <- getfe(est3, ef='zm2', se=TRUE, bN=100)

Can we recover the full var-covar matrix, in order to recover Cov(seller_i, buyer_i) for all observations ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant