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??
-mixed- Unable to achieve convergence of 3-level modelHello! I am studying the association between product quality measured by expert intermediary (overa…
Excluding a city when calculating the value for the cityDear Stalist, I would like to as for help with stata code. I would like to calculate a variable Ma…
Predicted probability for each DV outcomeDear community! How to create a table for predicted probability effect of each IV on each DV outcome…
Use mimix command for cross-sectional dataHi everyone, I'm interested in applying the reference-based sensitivity analyses using multiple impu…
Help with metapropDear all, I am doing a proportion meta-analysis with metaprop module. my data contains few 0 cells t…
Subscribe to:
Post Comments (Atom)
0 Response to Dummy Variable??
Post a Comment