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
Transform quarterly data to monthly data using interpolateHi all, I have some trouble to transform quarterly data to monthly data. I try to use denton and lin…
Effect size of moderation/interaction in fixed effects modelDear list, I wonder how to best calculate the effect size of an interaction term in a fixed effects …
Creating group IDs for geospatial event dataI have a dataset of certain events that I want to analyze based off of location. At the most granula…
geoinpoly with self made coordinates fileHello, I have recorded the lat and lon coordinates for different rectangular areas. I have group th…
bootstrap test.Dear All, I have this dataset Code: * Example generated by -dataex-. To install: ssc install datae…
Subscribe to:
Post Comments (Atom)
0 Response to Transforming a categorical variable into 1 categorical and 1 binary
Post a Comment