Have been working in higher education and research environment for the past 15 years in different capacities.
Base SAS, SPSS, Microsoft SQL Server, MS Access, MS Excel
Just the character to a number version then: array _icdvar ICD1--ICD20; do over _icdvar; if input(_icdvar,best.) in (462,464,465,466,507,997.31) or (480 <= tmp_var 488) then Respiratory = 1, else Respiratory = 0; ... end;
... View more
This works! Thank you! I also tried the longer method that seems to work. array _icdvar ICD1-ICD5; cnticd=0; do i=1 to 5; if missing(_icdvar(i)) = 0 then cnticd=cnticd+1; end; drop i;
... View more