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??
Displaying regression output in results windowHi I am running a regression using IV including fixed effects (this variable takes around 1500 valu…
How to save HR and 95%CI and P-value from Loops of cox regression from ten exposures on same outcome in a separate file (excel or dta)Hi, I am recently working on a project that requires me to calculate the HRs and 95%CI and p-value f…
panel unit root testsHello, How do I know what is the right way to conduct unit root tests for panel data because I trie…
multinomial logistic regression using panel data - femlogit not workingDear all, I am trying to perform a multinomial logistic regression with fixed effects (I am working…
Control variablesHi, I have a question in regards control variables. I am making a diff-in-diff model to measure the…
Subscribe to:
Post Comments (Atom)
0 Response to Dummy Variable??
Post a Comment