Cargando…
%svy_freqs: A Generic SAS Macro for Creating Publication-Quality Three-Way Cross-Tabulations
Cross-tabulations are a simple but important tool for understanding the distribution of socio-demographic characteristics among participants in epidemiological studies. We developed a generic SAS macro, %svy_freqs, to create publication-quality tables from cross-tabulations between a factor and a by...
Autores principales: | , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
2021
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10174182/ https://www.ncbi.nlm.nih.gov/pubmed/37181644 http://dx.doi.org/10.5334/jors.318 |
_version_ | 1785039979107319808 |
---|---|
author | MUTHUSI, JACQUES YOUNG, PETER W. MWALILI, SAMUEL |
author_facet | MUTHUSI, JACQUES YOUNG, PETER W. MWALILI, SAMUEL |
author_sort | MUTHUSI, JACQUES |
collection | PubMed |
description | Cross-tabulations are a simple but important tool for understanding the distribution of socio-demographic characteristics among participants in epidemiological studies. We developed a generic SAS macro, %svy_freqs, to create publication-quality tables from cross-tabulations between a factor and a by-group variable given a third variable using survey or non-survey data. The macro also performs two-way cross-tabulations and provides extra features not available in existing procedures such as ability to incorporate parameters for survey design and replication-based variance estimation methods, performing validation checks for input parameters, transparently formatting variable values from character into numeric and allowing for generalizability. We demonstrate the macro using 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. |
format | Online Article Text |
id | pubmed-10174182 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2021 |
record_format | MEDLINE/PubMed |
spelling | pubmed-101741822023-05-11 %svy_freqs: A Generic SAS Macro for Creating Publication-Quality Three-Way Cross-Tabulations MUTHUSI, JACQUES YOUNG, PETER W. MWALILI, SAMUEL J Open Res Softw Article Cross-tabulations are a simple but important tool for understanding the distribution of socio-demographic characteristics among participants in epidemiological studies. We developed a generic SAS macro, %svy_freqs, to create publication-quality tables from cross-tabulations between a factor and a by-group variable given a third variable using survey or non-survey data. The macro also performs two-way cross-tabulations and provides extra features not available in existing procedures such as ability to incorporate parameters for survey design and replication-based variance estimation methods, performing validation checks for input parameters, transparently formatting variable values from character into numeric and allowing for generalizability. We demonstrate the macro using 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. 2021 /pmc/articles/PMC10174182/ /pubmed/37181644 http://dx.doi.org/10.5334/jors.318 Text en https://creativecommons.org/licenses/by/4.0/This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International License (CC-BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. See http://creativecommons.org/licenses/by/4.0/ (https://creativecommons.org/licenses/by/4.0/) . |
spellingShingle | Article MUTHUSI, JACQUES YOUNG, PETER W. MWALILI, SAMUEL %svy_freqs: A Generic SAS Macro for Creating Publication-Quality Three-Way Cross-Tabulations |
title | %svy_freqs: A Generic SAS Macro for Creating Publication-Quality Three-Way Cross-Tabulations |
title_full | %svy_freqs: A Generic SAS Macro for Creating Publication-Quality Three-Way Cross-Tabulations |
title_fullStr | %svy_freqs: A Generic SAS Macro for Creating Publication-Quality Three-Way Cross-Tabulations |
title_full_unstemmed | %svy_freqs: A Generic SAS Macro for Creating Publication-Quality Three-Way Cross-Tabulations |
title_short | %svy_freqs: A Generic SAS Macro for Creating Publication-Quality Three-Way Cross-Tabulations |
title_sort | %svy_freqs: a generic sas macro for creating publication-quality three-way cross-tabulations |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10174182/ https://www.ncbi.nlm.nih.gov/pubmed/37181644 http://dx.doi.org/10.5334/jors.318 |
work_keys_str_mv | AT muthusijacques svyfreqsagenericsasmacroforcreatingpublicationqualitythreewaycrosstabulations AT youngpeterw svyfreqsagenericsasmacroforcreatingpublicationqualitythreewaycrosstabulations AT mwalilisamuel svyfreqsagenericsasmacroforcreatingpublicationqualitythreewaycrosstabulations |