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??
How to calculate NRI after multiple imputation (mi impute mvn)hello everyone, I'm a new Stata user and expect some suggestions.I have done the code "mi estimate:l…
Percentage change of daily exchange rate dataHello everyone, I am writing my dissertation thesis on the impact of Brexit negotiations on the val…
IVProbit postestimation testI am using MLE to estimate my IVProbit, which involves estimating a simultaneous system of equations…
Texdoc help file for graphs not workingI am trying to replicate the examples given in the help file for texdoc: To this end, I compiled th…
egen xtileHey! I am trying to do the following, egen tier=xtile(diff), nq(3) by(id yq) yq is the year and qu…
Subscribe to:
Post Comments (Atom)
0 Response to Dummy Variable??
Post a Comment