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
Chi-square for subsampleHi all, A snapshot of my data is below (I have 950 data points, so its only a small section). I am r…
drop/keep with multiple conditional statementHi everyone, A sample of my data looks as follows (my current data). I am trying to keep those obser…
Interaction terms between a dummy and continuous variableHi all, I am running a fixed effects model on a data set with 18 states from 1970 to 2018. State wi…
Alternative of Cronbach alpha (for single item measures)Hi, I've data on patients subjective health measured by a single question "How is your health today"…
trend and timeI want regress difference model in panel data. using two year data, for example, I want to estimate …
Subscribe to:
Post Comments (Atom)
0 Response to Transforming a categorical variable into 1 categorical and 1 binary
Post a Comment