friosavila / stpackages

Repository for all my Stata packages
MIT License
14 stars 10 forks source link

panels are not nested within clusters +unbalanced data #7

Closed kikiwong333 closed 3 months ago

kikiwong333 commented 6 months ago

csdid2 lnwwe, ivar(groupid) tvar(year) gvar(gvar)
Producing Long Gaps by default Using method reg panels are not nested within clusters

I want to ask :Can unbalanced panel data be used with csdid2? I tried, and it gave me such results:panels are not nested within clusters Thanks a lot

friosavila commented 6 months ago

Yes Like with csdid you need to drop ivar() and probably use “cluster()” instead This forces the command to use data as repeated crossection

On Sun, Mar 17, 2024 at 6:07 PM kikiwong333 @.***> wrote:

csdid2 lnwwe, ivar(groupid) tvar(year) gvar(gvar) Producing Long Gaps by default Using method reg panels are not nested within clusters

I want to ask :Can unbalanced panel data be used with csdid2? I tried, and it gave me such results:panels are not nested within clusters Thanks a lot

— Reply to this email directly, view it on GitHub https://github.com/friosavila/stpackages/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASZKKFRWVXZ3TCN7MEONGUDYYYH3RAVCNFSM6AAAAABE2RMFNCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4TAOBYHEYTENY . You are receiving this because you are subscribed to this thread.Message ID: @.***>