I am currently building a multiple logistic regression, Before that, I will do univariate analysis for each variable including both categorical and continuous data (around 20~). I am doing a macro to help it more efficient. This is the code i am using now but this does not work and SAS log said : Libref E is not assigned. I wonder how i should adjust the code. Thank you! . %let var = BMI air1 years etc. ; %macro univar; %do i=1 %to %eval(%sysfunc(countc(&var., " BMI air1 years etc."))+1); %let var1 = %scan(&var, &i); %put var1; proc logistic descending data = e; model cvs1 = &var1.; run; %end; %mend;
... View more