Dear Statalisters,
I am currently working on a university project and am struggeling to build a variable for "male" and "female" occupations. I am using Stata Version 14.2, and I am working with the german dataset NEPs and the ISCO coded occupation variable. Specifically I would like to create a variable indicating whether an individual works in a primarily male or female connotated occupation. I define an occupation as "female" if 70% or more working in this occupation are female and "male" if 30% or less are female.
The occupation variable is p731904_g3, the sex variable is named psex.
I typed
tab p731904_g3 psex, row
to get the row percentage of each occupation, but I am clueless on how to create the variable I need and don't know how to pursue. Thoughts and help are very welcome.
Thank you!
Related Posts with Problems constructing a Variable indicating the share of male and female in an occupation
Issue with simulations data - non r-class program may not set r()I have written a program which does not output my values correctly Code: program Datageneration, r…
calculating time differences (duration)Dear All, I was asked this question. The data is Code: * Example generated by -dataex-. To install…
Fixed Effects EstimationI am trying to run a fixed effects regression but unfortunately having some issues. I hope someone c…
ARIMA forecasting - non-normal residualsHi everybody, I am trying to do an ARIMA forecast of hospital examinations with daily time-series d…
GLM with proportion DV and categorical IV. Which STATA formula should I use?I ran an experiment to see if a particular gamification design (2 treatment groups) would perform be…
Subscribe to:
Post Comments (Atom)
0 Response to Problems constructing a Variable indicating the share of male and female in an occupation
Post a Comment