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??
Impulse response function after SVAR with exogenous variableHi, I'm trying to run the SVAR model with exogenous variables. A Y(t) = α+βy Y(t-1) + (d(t) +s(t))…
explaining regression coefficients economic significanceHello I performed xtreg y x x , fe regression to test the relationship between profit and cash hold…
Merging datasetsHi Users, I just got access to a dataset (M) which I need to merge with another data based on id an…
Graph bar by two groups in one chart (not combined)Hello Statalist, I would like to put two graphs in one chart. (1) bar graph (mean) of output by nat…
Working with dates and loopIs it possible to get a loop that works with every string variable which are in date format (CCYY-NN…
Subscribe to:
Post Comments (Atom)
0 Response to Dummy Variable??
Post a Comment