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
Time series dataHi everyone, I am new to STATA so I am sorry if this is a silly question. I am researching oil price…
Change of sign on coefficient and and r squared when supressing constant. How to interpret the results?Hi I am trying to estimate a system of equations concerning the effect of FDI on Business cycle syn…
Percentage point function of skew t distributionDear all, I am using the command skewtreg from SJ to fit a skew t distribution. Subsequently, I run…
Creating a year identifier for pre-post analysis to use for diff-in-diffHello All, I am new to posting on statalist. I hope my question is clear and happy to clarify if it…
problem unbalanced panel data for threshold modelsDear all i'm working on pay PHD thesis and i will use the threshold model but ,unfortunately, i can…
Subscribe to:
Post Comments (Atom)
0 Response to egen(), group Question
Post a Comment