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
Testing the Equality of the Regression Coefficients After PPMLHDFEI tried to estimate a PPML gravity model of bilateral trade with country-time fixed effects by -ppml…
Bayesian multilevel parametric survival modelHi, I'm trying to figure out if a Bayesian multilevel parametric survival model can fit for the foll…
two-y-axeshello, I try to show my results based on two y-axes but the results are not satisfactory in the grap…
Creating a rate grouped by another variableHello, I have a large dataset (27 vars, 1,048,575 obs) that contains data on malaria insecticide t…
Help with StrposHi there, In the code below my goal is to convert the local below into a neat list by converting "R…
Subscribe to:
Post Comments (Atom)
0 Response to removing 2-digit sic-codes with <10 companies
Post a Comment