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

Method cfe and sfe, cfe parameters #27

Open
allenzhao opened this issue Mar 14, 2023 · 2 comments
Open

Method cfe and sfe, cfe parameters #27

allenzhao opened this issue Mar 14, 2023 · 2 comments

Comments

@allenzhao
Copy link

I have a dataset that has two levels of id variables, say group_id andinvdividual_id. The Cartesian product of the two id variables can serve as the unit id as the requirement for index option.

I was wondering how can I use the method='cfe' to account for the fixed effects on group_id, 'individual_idand time? How should I specify thesfeandcfe` options?

@xuyiqing
Copy link
Owner

xuyiqing commented Mar 21, 2023 via email

@lzy318
Copy link
Collaborator

lzy318 commented Mar 21, 2023

Hello Allen,

If you want to control for the group_id, invdividual_id and time but not unit id, you can use this specification:

fect(...,method = 'cfe', index = c("unit","time"), force = "time", sfe = c("group_id","individual_id") )

Best,
Ziyi

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

3 participants