I am transitioning SAS user from STATA and need some help with the array function. Help would be greatly appreciated !! There are six columns of diagnosis codes for 20 patients (all fake data) For each variable below, use the algorithm to write the logic to select and code the IDs correctly, then list the ids that will be in each new variable. HBP Binary variable (0=no codes for hypertension in any coding position for Dxn; 1=at least ONE of the codes in any of the coding positions for Dxn) Dxn:401-405. msepsis Binary variable (0=no codes for sepsis in any coding position for Dxn; 1=at least one of the codes on any of the coding positions. Dxn:038,020.0,790.7,117.9,112.81. asepsis Binary variable (0=does not meet criteria for severe sepsis, 1= meets criteria for severe sepsis defined as at least one code for infection in any coding position for Dxn Dxn:001,023,033,034,095 PLUS at least one code for organ dysfunction in any coding position for Dxn. Dxn: 518.81,518.82,518.85,458.0,785.5,785.5,584,580,570,572,286.2,286.6)
... View more