* --------------------------------------------------------------------------------------------- * * The National Health Interview Survey (NHIS) 2020 * * 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:\NHIS2020 (on a machine running Windows) * - Download the sample adult ASCII file to the folder C:\NHIS2020 * (on a machine running Windows) * * --------------------------------------------------------------------------------------------- FILE HANDLE TEMP /NAME='C:\NHIS2020\adultinc20.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 10 - 11 FAMINCTC_A 12 - 17 POVRATTC_A 18 - 22 (F,2) INCGRP_A 23 - 23 RATCAT_A 24 - 25 IMPINCFLG_A 26 - 30 (A) INCTCFLG_A 31 - 31 . VARIABLE LABELS RECTYPE "Record type" HHX "Randomly assigned household number unique to a household" IMPNUM "Imputation number" FAMINCTC_A "Sample adult family income (top-coded)" POVRATTC_A "SA family poverty ratio (top-coded)" INCGRP_A "Sample adult family income (grouped)" RATCAT_A "Ratio of family income to poverty threshold for SA's family" IMPINCFLG_A "Imputed SA family income imputation flag" INCTCFLG_A "Sample adult family income top-code 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" 60 "60 Sample Adult Longitudinal" 70 "70 Sample Adult Partial" / FAMINCTC_A 250000 "250000 $250,000+" / INCGRP_A 1 "1 $0 to $34,999" 2 "2 $35,000 to $49,999" 3 "3 $50,000 to $74,999" 4 "4 $75,000 to $99,999" 5 "5 $100,000 or greater" 8 "8 Not Ascertained" / 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" / INCTCFLG_A 0 "0 No" 1 "1 Yes" . FREQUENCIES GENERAL = RECTYPE. EXECUTE.