Dear All,
I would like to analyze occupational fields. I have a variable that is coded according to the ISCO job classification. From this variable I need to create a variable with different fields/areas ex. Physical, math, Engineering porfessional or Life,health science professionals etc.
In original data the codes start from 1000 until 9320.
I would like to Group codes,however, those codes that I need to group do not come in a subsequent order. For example, I need to group an interval of codes ex from 3100 to 4100 with another interval 6100 to 7100.
How could I do that?
Please find an example:
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
Thank you in Advance!
I would like to analyze occupational fields. I have a variable that is coded according to the ISCO job classification. From this variable I need to create a variable with different fields/areas ex. Physical, math, Engineering porfessional or Life,health science professionals etc.
In original data the codes start from 1000 until 9320.
I would like to Group codes,however, those codes that I need to group do not come in a subsequent order. For example, I need to group an interval of codes ex from 3100 to 4100 with another interval 6100 to 7100.
How could I do that?
Please find an example:
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str4 t7job_isco88 "" "-2" "" "" "" "-2" "" "" "8280" "" "" "-2" "-2" "-2" "" "" "-2" "" "" "-2" "" "" "" "-2" "2412" "-2" "" "-2" "" "4190" "" "" "" "" "-2" "3133" "" "" "" "" "-2" "-2" "" "" "" "-2" "" "3320" "" "" "" "" "" "" "" "" "" "-2" "-2" "-2" "-2" "" "4190" "" "" "7141" "-2" "" "" "5132" "5141" "" "-2" "" "5141" "" "-2" "6112" "-2" "" "-2" "" "" "" "-2" "4190" "-2" "" "" "-2" "" "5132" "" "5220" "" "-2" "" "-2" "" "" end
Thank you in Advance!
Comment