op_chort variable
** 4-level variable for operation group cap drop op_cohort gen byte op_cohort = . replace op_cohort = 1 if inlist(op_1, 800, 1000, 1200) replace op_cohort = 2 if inlist(op_1, 100, 200, 300) replace op_cohort = 3 if inlist(op_1, 500, 510, 520, 600, 700, 900) replace op_cohort = 4 if inlist(op_1, 1100) lab def l_op_cohort 1 "gensurg" 2 "vascular" 3 "CV surg" 4 "hip fracture", replace lab val op_cohort l_op_cohort lab var op_cohort "Type of Operation" tab op_cohort, missing








