********************************************************************* * APRIL 11, 2016 11:54 AM * * THIS IS AN EXAMPLE OF AN SPSS SCRIPT THAT CREATES * A TEMPORARY SPSS FILE FROM THE * 2015 NHIS PUBLIC USE HOUSEHLD.DAT ASCII FILE * * THIS IS STORED IN HOUSEHLD.SPS ********************************************************************* FILE HANDLE TEMP /NAME='C:\NHIS2015\HOUSEHLD.dat' /RECFORM=VARIABLE /LRECL=46 DATA LIST FILE=TEMP FIXED RECORDS=1 TABLE / RECTYPE 1 - 2 SRVY_YR 3 - 6 HHX 7 - 12 (A) INTV_QRT 13 - 13 INTV_MON 14 - 15 WTIA_HH 16 - 21 WTFA_HH 22 - 27 LIVQRT 28 - 29 NON_INTV 30 - 30 ACPT_FAM 31 - 32 REJ_FAM 33 - 34 ACPT_PER 35 - 36 REJ_PER 37 - 38 ACPTCHLD 39 - 40 REGION 41 - 41 STRAT_P 42 - 44 PSU_P 45 - 46 . VARIABLE LABELS RECTYPE "File type identifier" SRVY_YR "Year of National Health Interview Survey" HHX "Household Number" INTV_QRT "Interview Quarter" INTV_MON "Interview Month" WTIA_HH "Weight - Interim Annual" WTFA_HH "Weight - Final Annual" LIVQRT "Type of Living Quarters" NON_INTV "Category of type A non-response" ACPT_FAM "Number of families in HH responding" REJ_FAM "Number of families in HH not responding" ACPT_PER "Number of persons in HH responding" REJ_PER "Number of persons in HH not responding" ACPTCHLD "Number of children in HH that responded" REGION "Region" STRAT_P "Pseudo-stratum for public use file variance estimation" PSU_P "Pseudo-PSU for public use file variance estimation" . VALUE LABELS RECTYPE 10 "Household" 20 "Person" 25 "Income Imputation" 30 "Sample Adult" 31 "Sample Adult Cancer" 38 "Functioning and Disability" 40 "Sample Child" 60 "Family" 63 "Family Disability Questions" 65 "Paradata" 70 "Injury/Poisoning Episode" 75 "Injury/Poisoning Verbatim" / INTV_QRT 1 "Quarter 1" 2 "Quarter 2" 3 "Quarter 3" 4 "Quarter 4" / INTV_MON 01 "January" 02 "February" 03 "March" 04 "April" 05 "May" 06 "June" 07 "July" 08 "August" 09 "September" 10 "October" 11 "November" 12 "December" / LIVQRT 01 "House, apartment, flat, condo" 02 "HU in nontransient hotel, motel" 03 "HU-permanent in transient hotel, motel" 04 "HU in rooming house" 05 "Mobile home/trailer w/no permanent rooms added" 06 "Mobile home/trailer w/1+ permanent rooms added" 07 "HU not specified above" 08 "Quarters not HU in room or board house" 09 "Unit not permanent-transient hotel, motel" 10 "Unoccupied site for mobile home/trailer/tent" 11 "Student quarters in college dormitory" 12 "Group quarter unit not specified above" 98 "Not ascertained" / NON_INTV 1 "Refused" 2 "No one home - repeated calls" 3 "Temporarily absent" 4 "Language problem" 5 "Other" / REGION 1 "Northeast" 2 "Midwest" 3 "South" 4 "West" COMPUTE WTIA_HH = WTIA_HH / 10. FREQUENCIES GENERAL = RECTYPE. EXECUTE.