I have string variables of capacity which are "10 cups", "8 cups" and "4 cups". The command egen cap = group(capacity),label give
capacity cap
10 cups 1
8 cups 3
4 cups 2
How can I order the new variables (cap) to be
Capacity cap
10 cups 1
8 cups 2
4 cups 3.
Thank you
Related Posts with egen(), group Question
Calculating the difference between maximum and minimum variable value over three overlapping yearsDear sata experts, I have a panel data set ranging from 2010-2018 for all firms listed i the US mar…
Question on one-way fuzzy string matchingHello -- I'm struggling to find a solution to what ought to be a fairly straightforward Stata issue…
Drop Stocks if they have less than 50% monthly return data for entire sample period.Hi folks, Here is my sample data. I would like to drop Stocks which don't have above 50% monthly re…
How to manually calculate standard errors for instrumental variables?Hi I am working on statistical inference with instrumental variables (IV) following Wooldridge (201…
Interpolation Quarterly to Monthly ; Missing dates when generating themDear Members of this forum, I find an anomaly while generating monthly data. At the second step of …
Subscribe to:
Post Comments (Atom)
0 Response to egen(), group Question
Post a Comment