********************************************************************* * APRIL 15, 2015 4:31 PM * * THIS IS AN EXAMPLE OF AN SPSS SCRIPT THAT CREATES * A TEMPORARY SPSS FILE FROM THE * 2014 NHIS PUBLIC USE FUNCDISB.DAT ASCII FILE * * THIS IS STORED IN FUNCDISB.SPS ********************************************************************* FILE HANDLE TEMP /NAME='C:\NHIS2014\FUNCDISB.dat' /RECFORM=VARIABLE /LRECL=73 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 FMX 16 - 17 (A) FPX 18 - 19 (A) WTFA_AFD 20 - 25 STRAT_P 26 - 28 PSU_P 29 - 30 FDRN_FLG 31 - 31 VIS_0 32 - 32 VIS_SS2 33 - 33 HEAR_1R 34 - 34 HEAR_2R 35 - 35 HEAR_SS2 36 - 36 HEAR_3 37 - 37 HEAR_4 38 - 38 MOB_SS2 39 - 39 MOB_2R 40 - 40 MOB_3A 41 - 41 MOB_3B2 42 - 42 MOB_3C 43 - 43 MOB_3D2 44 - 44 MOB_3E2 45 - 45 MOB_3F 46 - 46 MOB_3G 47 - 47 MOB_4 48 - 48 MOB_5 49 - 49 MOB_6 50 - 50 MOB_7 51 - 51 MOB_8 52 - 52 COM_SS 53 - 53 COM_2 54 - 54 COG_SS 55 - 55 COG_1 56 - 56 COG_2 57 - 57 COG_3 58 - 58 UB_SS 59 - 59 UB_1 60 - 60 UB_2 61 - 61 ANX_1 62 - 62 ANX_2 63 - 63 ANX_3R 64 - 64 DEP_1 65 - 65 DEP_2 66 - 66 DEP_3R 67 - 67 PAIN_2 68 - 68 PAIN_4 69 - 69 TIRED_1 70 - 70 TIRED_2 71 - 71 TIRED_3 72 - 72 RCS_AFD 73 - 73 . 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" FMX "Family Number" FPX "Person Number (Within family)" WTFA_AFD "Weight - Final Annual Functioning and Disability file" STRAT_P "Pseudo-stratum for public-use file variance estimation" PSU_P "Pseudo-PSU for public-use file variance estimation" FDRN_FLG "Disability Questions flag" VIS_0 "Does respondent wear glasses?" VIS_SS2 "Degree of difficulty seeing" HEAR_1R "Do you use a hearing aid?" HEAR_2R "How often do you use a hearing aid?" HEAR_SS2 "Degree of difficulty hearing" HEAR_3 "Difficulty hearing conversation with one person in quiet room" HEAR_4 "Diff hearing one person in noisier room even w/ hearing aid" MOB_SS2 "Degree of difficulty walking or climbing steps" MOB_2R "Use equipment or receive help for getting around?" MOB_3A "Use cane or walking stick?" MOB_3B2 "Use a walker or Zimmer frame?" MOB_3C "Use crutches?" MOB_3D2 "Use a wheelchair or scooter?" MOB_3E2 "Use artificial limb (leg/foot)?" MOB_3F "Use someone's assistance?" MOB_3G "Use other type of equipment or help?" MOB_4 "Diff walking 100 yards on level ground w/o aid or equipment" MOB_5 "Diff walking 1/3rd mile on level ground w/o aid or equipment" MOB_6 "Diff walking up or down 12 steps w/o aid or equipment" MOB_7 "Diff walking 100 yards on level ground w/ aid or equipment" MOB_8 "Diff walking 1/3rd mile on level ground w/ aid or equipment" COM_SS "Degree of difficulty communicating using usual language" COM_2 "Use sign language?" COG_SS "Degree of difficulty remembering or concentrating" COG_1 "Difficulty remembering, concentrating, or both?" COG_2 "How often have difficulty remembering?" COG_3 "Amount of things you have difficulty remembering?" UB_SS "Degree of difficulty with self-care" UB_1 "Diff raising 2 liter bottle of water from waist to eye level" UB_2 "Degree of difficulty using hands and fingers" ANX_1 "How often feel worried, nervous, or anxious?" ANX_2 "Take medication for worried, nervous, or anxious feelings?" ANX_3R "Level of feelings when last felt worried, nervous, or anxious?" DEP_1 "How often do you feel depressed?" DEP_2 "Take medication for depression?" DEP_3R "How depressed you felt last time you were depressed?" PAIN_2 "Frequency of pain in past 3 months" PAIN_4 "How much pain you had last time you had pain?" TIRED_1 "How often felt very tired or exhausted in past 3 months" TIRED_2 "How long most recent tired or exhausted feelings lasted?" TIRED_3 "Level of tiredness last time felt very tired or exhausted" RCS_AFD "Record completion status" . VALUE LABELS RECTYPE 10 "Household" 20 "Person" 25 "Income Imputation" 30 "Sample Adult" 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" / FDRN_FLG 1 "Families selected to receive AFD (sample adults) section" 2 "Families selected to receive FDB (all persons 1 year and older) section" / VIS_0 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / VIS_SS2 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / HEAR_1R 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / HEAR_2R 1 "All of the time" 2 "Some of the time" 3 "Rarely" 4 "Never" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / HEAR_SS2 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / HEAR_3 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / HEAR_4 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_SS2 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_2R 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_3A 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_3B2 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_3C 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_3D2 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_3E2 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_3F 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_3G 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_4 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_5 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_6 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_7 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / MOB_8 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / COM_SS 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / COM_2 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / COG_SS 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / COG_1 1 "Difficulty remembering only" 2 "Difficulty concentrating only" 3 "Difficulty with both remembering and concentrating" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / COG_2 1 "Sometimes" 2 "Often" 3 "All of the time" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / COG_3 1 "A few things" 2 "A lot of things" 3 "Almost everything" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / UB_SS 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / UB_1 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / UB_2 1 "No difficulty" 2 "Some difficulty" 3 "A lot of difficulty" 4 "Cannot do at all/unable to do" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / ANX_1 1 "Daily" 2 "Weekly" 3 "Monthly" 4 "A few times a year" 5 "Never" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / ANX_2 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / ANX_3R 1 "A little" 2 "A lot" 3 "Somewhere in between a little and a lot" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / DEP_1 1 "Daily" 2 "Weekly" 3 "Monthly" 4 "A few times a year" 5 "Never" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / DEP_2 1 "Yes" 2 "No" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / DEP_3R 1 "A little" 2 "A lot" 3 "Somewhere in between a little and a lot" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / PAIN_2 1 "Never" 2 "Some days" 3 "Most days" 4 "Every day" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / PAIN_4 1 "A little" 2 "A lot" 3 "Somewhere in between a little and a lot" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / TIRED_1 1 "Never" 2 "Some days" 3 "Most days" 4 "Every day" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / TIRED_2 1 "Some of the day" 2 "Most of the day" 3 "All of the day" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / TIRED_3 1 "A little" 2 "A lot" 3 "Somewhere in between a little and a lot" 7 "Refused" 8 "Not ascertained" 9 "Don't know" / RCS_AFD 1 "Not ascertained answers only" 2 "Refused and don't know answers only" 3 "Refused, DK, and not ascertained answers only" 4 "At least one valid answer" FREQUENCIES GENERAL = RECTYPE. EXECUTE.