U.S. flag An official website of the United States government.
Official websites use .gov

A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS

A lock ( ) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

i

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

Supporting Files
File Language:
English


Details

  • Alternative Title:
    J Open Res Softw
  • Personal Author:
  • 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, | 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.
  • Subjects:
  • Source:
    J Open Res Softw. 9(1)
  • Pubmed ID:
    37181644
  • Pubmed Central ID:
    PMC10174182
  • Document Type:
  • Funding:
  • Volume:
    9
  • Issue:
    1
  • Collection(s):
  • Main Document Checksum:
    urn:sha256:5c9fc414d8334f5e16c01b2287b5fc72c7be8ddb36aa714e6ccbd48c136ca3d7
  • Download URL:
  • File Type:
    Filetype[PDF - 1.41 MB ]
File Language:
English
ON THIS PAGE

CDC STACKS serves as an archival repository of CDC-published products including scientific findings, journal articles, guidelines, recommendations, or other public health information authored or co-authored by CDC or funded partners.

As a repository, CDC STACKS retains documents in their original published format to ensure public access to scientific information.