Hello, I have a huge dataset with a ton of different injury types, and am wondering if there is an easier way to create a different variable other than a bunch of of-then statements. I obviously don't need every type of injury to have its own category, and was hoping to group similar ones together, but it's taking so long. I attached the cause of injury list below. Here is the code I started typing: if cause_of_injury in ("FALL") then cause="FALL"; if cause_of_injury in ("FALL SL") then cause="FALL_SL"; if cause_of_injury in ("MVA") then cause="MVA"; if cause_of_injury in ("FALL HEIGHT") then cause="FALL_HEIGHT"; if cause_of_injury in ("FALL SL") then cause="FALL_SL"; if cause_of_injury in ("MCA") then cause="MCA"; if cause_of_injury in ("SKI", "SNOWB", "SMOB", "SLED", "SNOWB") then cause="SNOW"; if cause_of_injury in ("ASLT") then cause="ASLT"; if cause_of_injury in ("BIKE") then cause="BIKE"; There are sooo many categories. Any tips/ideas?
... View more