Hi All,
I have tried to find this answer in the forum but cant seem to.
I have a set of panel data for 15 countries over 10 years and want to create a dummy based on per capita income levels, per year but split into 3. Hope this makes sense
Usually with cross section i would first create the median income per year (as i want equal observations in each half(75))
egen MEDINCOME=median(income), by (year)
then gen dummy = income>MEDINCOME
However, I would like to have 3 splits instead of just two, eg 50 observations in each to get the equivalent of high income, middle income and lower income.
Is this possible?
Thank you
Safia
Related Posts with Dummy Variable??
is it possible to create a new variable with otherwise/else function?Hi All, I am trying t create a new variable that defines Car owned status of a person. What I want i…
Generating measures of repeat collaboration between firms over timeDear Statalist. I am trying to generate 2 separate measures of repeat collaboration between firms c…
Merge: variable does not uniquely identify observations in the master dataHi everyone, I have a data with a variable household ID that does not uniquely identify observation…
"Subtracting" one string variable from another string variableI'm cleaning up a government dataset that I need some help on. For the sake of simplicity, let's say…
Marginal effects of interaction between continuous and factor variables in fixed effects modelsHello. How may I test the marginal effects of my variables when there is a continuous-factor-interac…
Subscribe to:
Post Comments (Atom)
0 Response to Dummy Variable??
Post a Comment