%svy_logistic_regression: A generic SAS(R) macro for simple and multiple logistic regression and creating quality publication-ready tables using survey or non-survey data
Jacques MuthusiiD, Samuel Musili MwaliliiD, Peter Wesley YoungiD
Abstract
IntroductionReproducible research is increasingly gaining interest in the research community. Automating the production of research manuscript tables from statistical software can help increase the reproducibility of findings. Logistic regression is used in studying disease prevalence and associated factors in epidemiological studies and can be easily performed using widely available software including SAS, SUDAAN, Stata or R. However, output from these software must be processed further to make it readily presentable. There exists a number of procedures developed to organize regression output, though many of them suffer limitations of flexibility, complexity, lack of validation checks for input parameters, as well as inability to incorporate survey design.\n\nMethodsWe developed a SAS macro, %svy_logistic_regression, for fitting simple and multiple logistic regression models. The macro also creates quality publication-ready tables using survey or non-survey data which aims to increase transparency of data analyses. It further significantly reduces turn-around time for conducting analysis and preparing output tables while also addressing the limitations of existing procedures.\n\nResultsWe demonstrate the use of the macro in the analysis of the 2013-2014 National Health and Nutrition Examination Survey (NHANES), a complex survey designed to assess the health and nutritional status of adults and children in the United States. The output presented here is directly from the macro and is consistent with how regression results are often presented in the epidemiological and biomedical literature, with unadjusted and adjusted model results presented side by side.\n\nConclusionsThe SAS code presented in this macro is comprehensive, easy to follow, manipulate and to extend to other areas of interest. It can also be incorporated quickly by the statistician for immediate use. It is an especially valuable tool for generating quality, easy to review tables which can be incorporated directly in a publication.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 7
- FWCI
- 0.97
- Field percentile
- top 21%
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- %svy_freqs: A generic SAS macro for cross-tabulation between a factor and a by-group variable given a third variable and creating publication-quality tables using data from complex surveys
Jacques Muthusi, Samuel Musili Mwalili, Peter Wesley Young·bioRxiv·Sep 16, 2019
- A method of back-calculating the log odds ratio and standard error of the log odds ratio from the reported group-level risk of disease
D. Hu, C. Wang, A. O'Connor·bioRxiv·Sep 6, 2019
- R2ucare: An R package to perform goodness-of-fit tests for capture-recapture models
O. Gimenez, J.-D. Lebreton, … R. Pradel·bioRxiv·Jan 25, 2018
- hdnom: Building Nomograms for Penalized Cox Models with High-Dimensional Survival Data
Nan Xiao, Qing-Song Xu, Miao-Zhu Li·bioRxiv·Aug 23, 2016
- On Motivating the Choice of Link Function in Binomial Regression Through A Latent Abundance Process
Bert van der Veen, Francis K. C. Hui·bioRxiv·Oct 19, 2026
- TernTables: A Statistical Analysis and Table Generation Web Interface for Clinical and Biomedical Research
Joshua D. Preston, Helen Abadiotakis, … Joshua L. Chan·bioRxiv·Apr 20, 2026