Hey dear STATA Users,
I am meant to create a dummy variable.
That's literally a set of dummy variables that are based on a combination of "industry" and "occupation". For example, let's assume two industries (education, financial sector) and two occupations (manager, secretary). Then, you can have a four (two multiplied by two) dummy variables: (1) 1 if industry == education and occupation == manager or 0 otherwise; 1 if industry == education and occupation == secretary or 0 otherwise; and (3) and (4) similarly constructed.
But the combination of these two variables is really big.
I tried using egen job = group(occ ind), label but that takes too long.
Does anyone have any suggestions on what I should do?
Thank you!
Related Posts with Combine two variables into a dummy variable
Multiple imputation error at Iteration 0Hello all! I have a huge favor to ask: I tried to impute some variables using the following commands…
Sorting and droppingHi everyone, I have a dataset consisting of 10 numeric variables. I was wondering to know how can I …
Export descriptive statistics tables and charts to multiple worksheets within an Excel workbookI'm looking for a solution where I can export descriptive statistics tables and charts to multiple w…
Conducting t-tests between an original sample and a sub-sampleI'm trying to figure out the best way to conduct t-tests between some descriptive statistics of my o…
Reweighed Rif OLS decomposition..Hello everybody I am writing my master thesis on on rural-urban inequality decomposition using unco…
Subscribe to:
Post Comments (Atom)
0 Response to Combine two variables into a dummy variable
Post a Comment