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
Questions about Data SettingDear Statalist, I am now setting the data to write the DID. However, there is a problem with the ar…
Marginsplot, addplot - adjustmentHello, using the command: - marginsplot, addplot(hist...)-, I got this graph: Array I would like to…
Changing many values at onceHi all, I am working with panel data from a household survey. For each household (nohhold), multipl…
Issue with three-dimensional panel data analysisHi, I am new with STATA and I would like some advice for the following problem: I am dealing with p…
Fairlie decompositionHello, I am using the fairlie STATA module for decomposition (https://ideas.repec.org/c/boc/bocode/…
Subscribe to:
Post Comments (Atom)
0 Response to Grouping observations
Post a Comment