Hello,
I have a variable which shows whether the respondent works in a male dominated or a female dominated work sector. Now i want to generate two new variables, one which shows only the male respondents and whether they work in a male or female dominated sector and one which shows only the female respondents and whether they work in a male or female dominated sector.
How can i do that?
i have tried several code, like the following but none seem to work.
Gen women_in_sector
replace women_in_sector = 0 if sector_recode - (sex >1)
Please help!
Related Posts with How to generate a variable with only one gender?
Interpretation of result for cross sectional independence test - xtcd2Hi - I have received this result and with the negative CD value I am confused over its interpretatio…
Help with a gravity model!Good morning, At the moment I am doing a gravity model for the trade in music. My problem is very s…
Creating principal components output after pcaHi All, I wish to create a table depicting the complete output tables post PCA estimation. I found …
Create numlist based on values? I am currently struggling a bit with Stata syntax. As I am using the "margins" command, I want to s…
Question: Creating an indicator for every fifth eventI have a question concerning an efficient way to create an indicator for the date at which an event …
Subscribe to:
Post Comments (Atom)
0 Response to How to generate a variable with only one gender?
Post a Comment