'%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 fac...

Descripción completa

Guardado en:
Detalles Bibliográficos
Autores principales: Jacques Muthusi, Peter W. Young, Samuel Mwalili
Formato: article
Lenguaje:EN
Publicado: Ubiquity Press 2021
Materias:
Acceso en línea:https://doaj.org/article/93b1751975f84c318fb500a055c9d594
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
id oai:doaj.org-article:93b1751975f84c318fb500a055c9d594
record_format dspace
spelling oai:doaj.org-article:93b1751975f84c318fb500a055c9d5942021-11-08T08:11:52Z'%svy_freqs': A Generic SAS Macro for Creating Publication-Quality Three-Way Cross-Tabulations2049-964710.5334/jors.318https://doaj.org/article/93b1751975f84c318fb500a055c9d5942021-10-01T00:00:00Zhttps://openresearchsoftware.metajnl.com/articles/318https://doaj.org/toc/2049-9647Cross-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.Jacques MuthusiPeter W. YoungSamuel MwaliliUbiquity Pressarticlesas macrodisease prevalencethree-way crosstabulationsreproducible researchreplication-based variance estimationComputer softwareQA76.75-76.765ENJournal of Open Research Software, Vol 9, Iss 1 (2021)
institution DOAJ
collection DOAJ
language EN
topic sas macro
disease prevalence
three-way crosstabulations
reproducible research
replication-based variance estimation
Computer software
QA76.75-76.765
spellingShingle sas macro
disease prevalence
three-way crosstabulations
reproducible research
replication-based variance estimation
Computer software
QA76.75-76.765
Jacques Muthusi
Peter W. Young
Samuel Mwalili
'%svy_freqs': A Generic SAS Macro for Creating Publication-Quality Three-Way Cross-Tabulations
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 article
author Jacques Muthusi
Peter W. Young
Samuel Mwalili
author_facet Jacques Muthusi
Peter W. Young
Samuel Mwalili
author_sort Jacques Muthusi
title '%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_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_sort '%svy_freqs': a generic sas macro for creating publication-quality three-way cross-tabulations
publisher Ubiquity Press
publishDate 2021
url https://doaj.org/article/93b1751975f84c318fb500a055c9d594
work_keys_str_mv AT jacquesmuthusi svyfreqsagenericsasmacroforcreatingpublicationqualitythreewaycrosstabulations
AT peterwyoung svyfreqsagenericsasmacroforcreatingpublicationqualitythreewaycrosstabulations
AT samuelmwalili svyfreqsagenericsasmacroforcreatingpublicationqualitythreewaycrosstabulations
_version_ 1718442832373481472