************************************************************************************************; * Program: maternal_comorbidity_index_code.sas ; * ; * Purpose: To compute the maternal comorbidity index based on ICD-9 codes and age ; * ; * Description: This code takes in a list of ICD-9 codes and ages and computes a materal; * comorbidity index for each individual ; * ; * Citation: Pending ; * ; * ; * definitions: ICD9file = input datset listing each ICD-9 code for each individual ; * ; * agefile = input dataset with listing each for each individual; * ; * ICD9variable = variable name for ICD-9 codes in ICD9file input file; * ; ************************************************************************************************; data age; set agefile; if age>44 then weight = 3; if 40<=age<=44 then weight = 2; if 35=