Hello!
Can you tell me how to pull out one of the 4 categorical options of the education variable so that those who finish university can be a separate dummy variable, reducing the categories for the education indicator to only 3:
a) Less than primary completed,
b) Primary completed and
c) Secondary completed?
I've tried changing them each to binary but then I don't know how to assemble again the 3 that I want to remain a single categorical variable. Maybe there is a more straightforward way?
Thanks in advance
Heather
Related Posts with Transforming a categorical variable into 1 categorical and 1 binary
ci prop and proportions with zero countsHi, I would like to estimate a confidence interval for a proportion when there are zero counts. I fi…
superimposing a normal distribution over a histogram - how to rescale the functionDear all, I am trying to superimpose a normal distribution over a histogram, but the final output d…
EventStudy Ouptut table / outreg2?Hello Guys, I am conducting an event study (dividend announcements) with 109 companies and an event …
Stationarity in Macroeconomic Panel DataDear Statalist, I am working on my dissertation which includes an analysis of macroeconomic data su…
Mediation moderation commandHello, I was wondering if there is mediation moderation command all in one. Please see the model th…
Subscribe to:
Post Comments (Atom)
0 Response to Transforming a categorical variable into 1 categorical and 1 binary
Post a Comment