svy_freqs
svy_freqs implements a SAS macro that performs three-way cross-tabulations for complex survey and non-survey data to generate publication-quality tables for epidemiological analyses.
Key Features:
- Three-Way Cross-Tabulation: Performs cross-tabulations that incorporate a factor, a by-group variable, and a third variable to examine multi-variable relationships.
- Survey Design Integration: Accepts parameters for survey design, accommodating stratified and clustered sampling schemes used in national health surveys.
- Replication-Based Variance Estimation: Supports replication-based methods for variance estimation to obtain reliable standard errors for survey estimates.
- Validation Checks: Implements input-parameter validation checks to reduce processing errors.
- Data Formatting: Converts character variable values into numeric representations for consistent data handling.
- Publication-Quality Output: Produces refined tables formatted for academic and professional reporting.
- Generalizability: Is applicable across diverse datasets for varied epidemiological study designs.
Scientific Applications:
- NHANES 2013–2014 Analysis: Used to analyze data from the 2013–2014 National Health and Nutrition Examination Survey to assess health and nutritional status across populations.
- Socio-demographic and Disease Status Cross-Tabulation: Facilitates examination of relationships between socio-demographic characteristics and disease or health outcomes.
Methodology:
Implemented as a SAS macro that generates three-way cross-tabulations, handles both survey and non-survey data, accepts survey design parameters for stratified/clustered samples, supports replication-based variance estimation, and formats character variables to numeric values.
Topics
Details
- Programming Languages:
- SAS
- Added:
- 11/14/2019
- Last Updated:
- 12/27/2020
Operations
Publications
Muthusi J, Mwalili S, Young P. <i>%svy_freqs:</i> 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. Unknown Journal. 2019. doi:10.1101/771303.