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 Medicaid match status. These results can be used to determine the maximum available sample size so that the feasibility of conducting analyses utilizing the NHANES-CMS linked Medicaid data can be assessed. This should be especially useful when you initiate a RDC proposal to analyze the restricted use linked CMS Medicaid files.
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 Medicaid, linked below.
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; |
Creates formats, CMS_MEDICAID_MATCH, GENDER, and RACE_ONE, based on the values of the variables CMS_ MEDICAID_MATCH, RIAGENDR and RACETH (re-coded race/ethnicity variable), respectively. Race/ethnicity was recoded in Course 2, Module 7, Task 1 Merge. |
proc tabulate data= nhanes.merg9900_Medicaid | The tabulate procedure is used to produce a formatted table displaying total counts. |
format=BEST10.0; | The default format for all cells is 10 spaces wide. |
class RACETH / order=unformatted missing; class RIAGENDR / order=unformatted missing; class CMS_MEDICAID_MATCH / order=formatted missing; |
The class statement identifies RACETH, RIAGENDR and CMS_ MEDICAID_MATCH as class variables, having a small number of discrete and unique values. The missing option alerts SAS to include observations with missing values in the table. The ORDER=UNFORMATTED option specifies that the class values are ordered by their unformatted values, which yields the same order as PROC SORT. The ORDER=FORMATTED option specifies that the class values are ordered by the formatted representation of the value. |
table RIAGENDR RIDRETH1='Race/ethnicity' , /* Row Dimensions */ CMS_ MEDICAID_MATCH*n; /* Column Dimension */ |
The table statement describes a two-dimensional table to be printed. The row dimension is composed of the total count, number of males and females, and number of race/ethnicity groups. The column dimension is composed of Medicaid match status. |
format CMS_ MEDICAID_MATCH cmsmatch. RIAGENDR gender. RACETH race_one.; | This format statement uses the user-written formats that have been previously defined in PROC FORMAT. |
title 'Merged NHANES Feasibility/Demographic Data'; title2 ''Frequency Distribution of Race/ethnicity and Gender by Medicaid Match Status''; |
This title statement specifies the title of the output. |
To check the results of your program, review the SAS log and output (.lst) reports.
Your output should resemble the table below. Note that the total count of NHANES-CMS Medicaid eligible and linked respondents = 3,506. This number is confirmed in the match rate table on the NCHS website, referenced in Module 9, Task 2, Medicaid, that shows that the number of 1999-2000 NHANES respondents linked to at least one year of the Medicaid Person Summary File is also 3,506.
„ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒ…ƒƒƒƒƒƒƒƒƒƒ†
‚ ‚Ineligible‚ Linked ‚Not Linked‚
‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒ‰
‚Total ‚ 2113‚ 3506‚ 4346‚
‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒ‰
‚Gender ‚ ‚ ‚ ‚
‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚ ‚
‚Male ‚ 973‚ 1520‚ 2390‚
‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒ‰
‚Female ‚ 1140‚ 1986‚ 1956‚
‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒ‰
‚Race/Ethnicity (recode) ‚ ‚ ‚ ‚
‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ‰ ‚ ‚ ‚
‚non-Hispanic white ‚ 503‚ 713‚ 2151‚
‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒ‰
‚non-Hispanic black ‚ 528‚ 1009‚ 691‚
‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒ‰
‚Mexican American ‚ 865‚ 1377‚ 1151‚
‡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒ‰
‚Other ‚ 217‚ 407‚ 353‚
Šƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒ‹ƒƒƒƒƒƒƒƒƒƒŒ
Close Window to return to module page.