UniLogistic: A SAS Macro for Descriptive and Univariable Logistic Regression Analyses. [Code Snippet].

04 April 2016

Descriptive and univariable logistic regression analyses are essential before constructing multivariable models, but are very time consuming, particularly if a large number of explanatory variables are to be evaluated. A macro UniLogistic is described in this paper that conducts descriptive and univariable logistic regression analyses (binomial, ordinal or nominal, as required) in SAS and presents results in formatted tables in Excel and graphics in PDF files. Implementation of the macro is illustrated in this paper using example datasets from statistics and epidemiology textbooks. Keywords: binomial, ordinal, multinomial, cumulative logit, generalized logit, graphical summaries, summary statistics, SAS