asjadnaqvi / DiD

Keeping track of what is going on with the latest DiD innovations.
https://asjadnaqvi.github.io/DiD
MIT License
423 stars 151 forks source link

CSDID implementation error : (number of observations=0) #16

Open Iamnir opened 1 year ago

Iamnir commented 1 year ago

I have five variables[ (fid or firm id - Panel identifier), (year- time ), (group variable - first_treat constructed in which year a firm received the treatment), depvar- Log(loans+1) and indepvar (relationship with a private bank or not)] in the dataset for now. The only problem in the data is that there are few fid which never got treated and there are many firms which got the treatment later on.

When I run the csdid command in the stata as csdid ln_loans priv, ivar(fid) time (year) gvar(first_treat) method(reg)

It shows that number of observations are 0 and everything is absorbed (basically omitted).

I dropped the firms in the dataset which never received the treatment and rerun the same. It did not work with that as well.

Kindly help.

Thank you!!

anammoraiss commented 11 months ago

I am trying to solve the same problem. Did you have any progress?