Hello community this my first post.
I'm a SAS user, new to STATA, require it for my graduate program. I may not use the terminology, but here goes my question:
Example dataset
ID employees
1 205
2 5
3 14
4 62
5 0
I would like to group employees count into categorical
if a firm has less than 5 employees =1
employee count from 6-100 firm_size = 2
employee count above 100=3
Thank you in advance
Related Posts with Grouping observations
Predicting residuals from instrumental regressionModel : ivreghdfe itotf (qt = lagqt lagcfo) cfo, absorb(gvkey fyear) endog(qt) cluster(gvkey) resid …
linking data with a keyHello I need some help linking this data set So the variable taskdefinitionid is the numerical cod…
Five Year Average Period. Each Variable?Dear all, I want to create five year average periods for my independent variables (FDI inflows) and…
Need help re-arranging dataHi my dataset looks like this right now: clear input long mrn str10 date str11 diagnosis long date_n…
Using loop to import, edit, then export .csv filesHello, I am importing a large number of .csv files into Stata. Before I can import the files, I nee…
Subscribe to:
Post Comments (Atom)
0 Response to Grouping observations
Post a Comment