Dear Statalist Members,
I am having the following problem and would be happy if someone could help.
There is a panel database on the company_ID year level, and there are more establishments for each company_ID - year.
Like this:
comp_ID year est_ID
1 2005 A
1 2005 B
1 2006 A
1 2006 B
1 2007 .
1 2008 A
1 2008 B
However, there are some missing years for establishments, as you can see it here for year 2007.
Establishment A and B are likely to exist in 2007 as well, but now we only have 1 missing observation instead of 2, plus we have repeated time values on the company - year level.
How can I make each missing observation to 2 observations and fill them up with the establishment IDs?
Thank you very much in advance.
Best regards,
Zsolt
I am having the following problem and would be happy if someone could help.
There is a panel database on the company_ID year level, and there are more establishments for each company_ID - year.
Like this:
comp_ID year est_ID
1 2005 A
1 2005 B
1 2006 A
1 2006 B
1 2007 .
1 2008 A
1 2008 B
However, there are some missing years for establishments, as you can see it here for year 2007.
Establishment A and B are likely to exist in 2007 as well, but now we only have 1 missing observation instead of 2, plus we have repeated time values on the company - year level.
How can I make each missing observation to 2 observations and fill them up with the establishment IDs?
Thank you very much in advance.
Best regards,
Zsolt
Comment