Task 1: Produce Table of Race/Ethnicity and Gender by Linkage Eligibility and Match Status of NHANES Respondents: Medicare

Once the feasibility files have been merged to the NHANES demographic file you can use the merged files to assess sample sizes by different demographic characteristics (e.g. race/ethnicity and gender) and Medicare match status. These results can be used to determine the maximum available sample size so that the feasibility of conducting analyses utilizing the linked CMS Medicare data can be assessed. This should be especially useful when you initiate a RDC proposal to analyze the restricted use NHANES-CMS linked Medicare files.

Example: Produce a frequency distribution of race/ethnicity and gender from the NHANES Demographic file data.

Info icon Information

Because this table is being used to evaluate the adequacy of the sample, sample weights were not used.

Download, open and run the program, SAS Code for Medicare, linked below.

 

Explanation of SAS Code to Examine Contingency Table Cells
Statements Explanation
options ls=120 ps=42 missing=' ' nocenter validvarname=upcase compress=binary nodate nonumber; Log/List options.  Compress option reduces storage requirements for output datasets.
libname nhanes 'C:\NHANES'; Provides location for reading and saving SAS datasets.
proc format;
  value CMSMATCH
        1 = 'Linked'
        2 = 'Not Linked'
        3 = 'Ineligible';
 
  value GENDER
        1 = 'Male'
        2 = 'Female';