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

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

Open
Iamnir opened this issue Jul 12, 2023 · 1 comment
Open

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

Iamnir opened this issue Jul 12, 2023 · 1 comment

Comments

@Iamnir
Copy link

Iamnir commented Jul 12, 2023

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
Copy link

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

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

2 participants