%svy_freqs: A Generic SAS Macro for Creating Publication-Quality Three-Way Cross-Tabulations.

Q1 Social Sciences
Jacques Muthusi, Peter W Young, Samuel Mwalili
{"title":"<i>%svy_freqs:</i> A Generic SAS Macro for Creating Publication-Quality Three-Way Cross-Tabulations.","authors":"Jacques Muthusi,&nbsp;Peter W Young,&nbsp;Samuel Mwalili","doi":"10.5334/jors.318","DOIUrl":null,"url":null,"abstract":"<p><p>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, <b><i>%svy_freqs,</i></b> 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.</p>","PeriodicalId":37323,"journal":{"name":"Journal of Open Research Software","volume":"9 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2021-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10174182/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Open Research Software","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.5334/jors.318","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"Social Sciences","Score":null,"Total":0}
引用次数: 0

Abstract

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.

%svy_freqs:用于创建发布质量的三向交叉表格的通用SAS宏。
交叉表是了解流行病学研究参与者之间社会人口特征分布的一种简单但重要的工具。我们开发了一个通用的SAS宏%svy_freqs,在给定使用调查或非调查数据的第三个变量的情况下,从因子和分组变量之间的交叉制表创建出版质量表。该宏还执行双向交叉制表,并提供了现有程序中不具备的额外功能,例如为调查设计和基于复制的方差估计方法合并参数的能力,对输入参数执行验证检查,透明地将变量值从字符格式化为数字,并允许泛化。我们使用2013-2014年国家健康和营养检查调查(NHANES)来证明宏观,这是一项复杂的调查,旨在评估美国成人和儿童的健康和营养状况。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Open Research Software
Journal of Open Research Software Social Sciences-Library and Information Sciences
CiteScore
6.50
自引率
0.00%
发文量
7
审稿时长
21 weeks
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信