Hi dear Statalist,
I am going to drop firms that do not live the entire period. There are 2 variables:
i. year: 2010-2021
ii. firms ID: NPC_FIC
During period 2010-2021 some firms exist from the market and don't stay for the whole period. I need to keep only firms that stay all 12 years in the market. The data is massive and I cannot recognize which firm left. Thank you for your ideas.
Listed 100 out of 4207538 observations
Only brought a few obs as examples.
Cheers,
Paris
I am going to drop firms that do not live the entire period. There are 2 variables:
i. year: 2010-2021
ii. firms ID: NPC_FIC
During period 2010-2021 some firms exist from the market and don't stay for the whole period. I need to keep only firms that stay all 12 years in the market. The data is massive and I cannot recognize which firm left. Thank you for your ideas.
Code:
clear input double NPC_FIC int year 500979723 2010 500982050 2010 501615311 2010 501615918 2010 500990290 2010 500992141 2010 502481463 2010 501616580 2010
Only brought a few obs as examples.
Cheers,
Paris

Comment