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
Long data formatting and Clogit model for discrete choice experiments with multiple choice questionsI have survey data from a discrete choice experiment where each survey respondent was asked to compl…
converting "None"(python) to "" (Stata).Hi , manipulating a list in python I ended up with the following tuple, which I need to send to sta…
Exporting psmatch2 results on the matched sample: a solution with esttabI am writing my thesis right now and have had many troubles trying to export the results of the user…
Interpretation of a Regression OutputDear experts, I would like to kindly ask for your help in the interpretation of a regression output…
Creating filename as columns in multiple files dta files before appendingHi, I am trying to include the name of the file as a variable before appending. Please see code bel…
Subscribe to:
Post Comments (Atom)
0 Response to removing 2-digit sic-codes with <10 companies
Post a Comment