Utilizando múltiples declaraciones de Where
Estoy intentando filtrar registros que contienen palabras específicas dentro de una cadena para laREASON_FOR_VISIT
variable. Luego quiero usar los registros restantes para calcular los valores medios para la variabletotal_ed_los
yarrive_to_dr_sees
.
Tengo el siguiente código, pero me temo que no está filtrando las cadenas que me gustaría. ¿Es esta una instancia que necesito usarPROC SQL
o hay otras opciones?
¡Gracias
data FT_Post;
set WORK.FT_May;
Where checkin_time between '12:00't and '20:00't;
Where REASON_FOR_VISIT Not Like '%psyc%';
Where REASON_FOR_VISIT Not Like '%psy eval%';
Where REASON_FOR_VISIT Not Like '%psych%';
Where REASON_FOR_VISIT Not Like '%suicid%';
Where REASON_FOR_VISIT Not Like '%homicid%';
run;
proc means data=FT_Post median;
class checkin_date;
var total_ed_los arrive_to_dr_sees;
run;