* --------------------------------------------------------------------------------------------- * * The National Health Interview Survey (NHIS) 2021 * * Sample Adult Imputed Income data file * * This program loads the NHIS sample adult imputed income ASCII data file downloaded from the * NCHS website (https://www.cdc.gov/nchs/nhis/index.htm) to an SPSS dataset. * * The program creates descriptive variable labels and formats with meaningful * category labels. It has a sample frequency to verify that the data were correctly * loaded. * * BEFORE RUNNING THIS PROGRAM, PLEASE: * - Create a folder called C:\NHIS2021 (on a machine running Windows) * - Download the sample adult ASCII file to the folder C:\NHIS2021 * (on a machine running Windows) * * --------------------------------------------------------------------------------------------- FILE HANDLE TEMP /NAME='C:\NHIS2021\adultinc21.dat' /RECFORM=VARIABLE. SET BLANKS=SYSMIS / UNDEFINED = NOWARN. SET MXWARNS=0. DATA LIST FILE=TEMP FIXED RECORDS=1 TABLE / RECTYPE 1 - 2 HHX 3 - 9 (A) IMPNUM_A 10 - 11 POVRATTC_A 12 - 16 (F,2) RATCAT_A 17 - 18 IMPINCFLG_A 19 - 19 (A) . VARIABLE LABELS RECTYPE "Record type" HHX "Randomly assigned household number unique to a household" IMPNUM_A "Imputation number" POVRATTC_A "SA family poverty ratio (top-coded)" RATCAT_A "Ratio of family income to poverty threshold for SA's family" IMPINCFLG_A "Imputed SA family income imputation flag" . VALUE LABELS RECTYPE 10 "10 Sample Adult" 20 "20 Sample Child" 30 "30 Sample Adult Income" 40 "40 Sample Child Income" 50 "50 Paradata" / RATCAT_A 01 "01 0.00 - 0.49" 02 "02 0.50 - 0.74" 03 "03 0.75 - 0.99" 04 "04 1.00 - 1.24" 05 "05 1.25 - 1.49" 06 "06 1.50 - 1.74" 07 "07 1.75 - 1.99" 08 "08 2.00 - 2.49" 09 "09 2.50 - 2.99" 10 "10 3.00 - 3.49" 11 "11 3.50 - 3.99" 12 "12 4.00 - 4.49" 13 "13 4.50 - 4.99" 14 "14 5.00 or greater" 98 "98 Not Ascertained" FREQUENCIES GENERAL = RECTYPE. EXECUTE.