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
Non-linear IV: Dependent count variable and binary endogenous variableHallo I have a problem in my research project where my dependent variable is a (very dispersed) cou…
Using Local in a LoopHello everyone, I'm having a problem commanding a local to do a function. The idea of the whole loo…
Beginner's question on datasetI have data on online competitions that are held weekly. I have data from 2001 all the way up to 201…
Standard DeviationIn my panel data, There are 20 individuals and 32-time points. Within the data set, the "Exchange ra…
Marginplot and Khb graphDear statalists, It is my first post on this forum, so i hope that i won't wrong section or formulat…
Subscribe to:
Post Comments (Atom)
0 Response to egen(), group Question
Post a Comment