** This File created 4 March 2009, Paul Lambert, University of Stirling. *** Stata Conversion Syntax: ISCO88 categories as generated by CASOC ** (UK Occupational classification coding). ** CONVERTS CASOC STYLE STRING ISCO88'S TO NUMERIC FORMAT. ***** Explanation : . ** CASOC is used by many major surveys, eg, BHPS. ** It codes occupations into _string format_ ISCO88 categories. ** Most of these strings are numeric, and may be converted to numeric ** format by a compute=number, or recode (convert) command. ** However a small number of occupations are coded with -'s to indicate ** uncertain group membership - eg, 122- is used for minor group 122, unit group unclear. ** The syntax below converts relevant codings to conventional indicators in numbers. ** THESE STAY STRING FORMAT, though as the values are all now numbers, so they may easily be then converted to numeric, ** for instance by using "destring ajbisco, replace" ***********. capture program drop iscoca program define iscoca version 8 syntax , isco(varname) replace `isco'="1220" if (`isco' == "122-") replace `isco'="1310" if (`isco' == "131-") replace `isco'="2000" if (`isco' == "2---") replace `isco'="8270" if (`isco' == "827-") replace `isco'="8280" if (`isco' == "828-") replace `isco'="3110" if (`isco' == "311-") replace `isco'="7310" if (`isco' == "713-") replace `isco'="8120" if (`isco' == "812-") replace `isco'="8150" if (`isco' == "815-") replace `isco'="8220" if (`isco' == "822-") replace `isco'="2140" if (`isco' == "214-") replace `isco'="7400" if (`isco' == "74--") end ****************************************************.