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
Reference group with multiple dichotomous variablesHello Statalist I have a question regarding how to interpret the reference group in my logistic reg…
Running Multinomial Probit on unbalanced Panel dataI have unbalanced panel data on household cooking energy, with total observations equal to 1762 as f…
Portfolio averageHi, I'm currently writing my bachelor thesis and I'm new to Stata. I have monthly data and I want to…
Sample size Hello everyone, I ask for advice on the calculation of the sample size ... From a previous study (w…
sample size-new From a published study we have the following information. Here there is only one group (preterm inf…
Subscribe to:
Post Comments (Atom)
0 Response to egen(), group Question
Post a Comment