Hello everyone, I would like to write a bit of code to run a simple proc logistic for every binary variable I have in a data set. I have a %let statement where I have named all of my binary variables, but how would I go about looping through each variable and calling proc logistic? my current code currently runs all binary variables at the same time. %let binary = var1 var2 var4 var6 var8 var 1;
proc logistic data=work.dataset;
model outcome = &binary/ clodds=pl clparm=pl;
title "Model single binary variable against outcome";
run;
... View more