Hello, I was wondering if the if/else statements in SAS can be used with "or" to merge multiple variables. For instance, if using the following code: if time0person='Yes' then visit_type_Time0= "in-person"; else if Time0tele='Yes' then visit_type_Time0="telehealth"; else if time0phone='Yes' then visit_Time0="phone"; I have another 3 variables called Most0person, most0tele, and most0phone. is there some way to combine all 'Yes" answers for time0person with all 'Yes' answers for Most0person into the same variable "Visit_type_0"="in-person"? Something like if time0person='Yes' or Most0person='yes' then visit_type_Time0= "in-person"; else if Time0tele='Yes' or Most0tele='Yes' then visit_type_Time0="telehealth"; else if time0phone='Yes' or Most0phone='Yes' then visit_Time0="phone"; Please let me know if this question makes sense. Thanks.
... View more