Hi there,
I am trying to remove 2-digit sic codes for which my dataset has less than 10 companies.
I have made a numerical variable of the first two digits of the sic code:
gen sic2 = substr(sic,1,2)
destring sic2, gen(sicnum2)
Does someone know what type of command I should put based on number of companies conditional? Note that I have data for various years per company.
Hope someone can help out.
Kind regards,
Sarah
Related Posts with removing 2-digit sic-codes with <10 companies
count total observations per firm per yearHello, I am a new Statalist. I have a firm ID variable(Ticker), a string variable(NED consist of "y…
Looping over different observationsHi all, I am using a time-series dataset, with country names, the year, fragility, and fragility ra…
Exponential moving average (tssmooth exponential) over last X observationsHi! I do not fully understand the "tssmooth exponential" command. How exactly is the value calculate…
Finite mixture models (FFMDear Stata users, I am in need of help, Does anyone know how to calculate the density properties (m…
Creating line graph for a binary variable across two groups over yearsHi, I am looking to create a line graph for a binary variable 'PERFORMANCE' (students with good hono…
Subscribe to:
Post Comments (Atom)
0 Response to removing 2-digit sic-codes with <10 companies
Post a Comment