*
This SPSS syntax reads ASCII format (text format) 1991 YRBS data and creates a formatted
and labeled SPSS data file that you can analyze in SPSS;
*
Change the file location specifications from "c:\yrbs1991" to the location where you have
stored the SPSS syntax and the YRBS ASCII data file before you run this syntax;
Change the location specification in three places - in the "data list" statement at the top
of the syntax and in the "save" and "get" statements at the end of the syntax;.
DATA LIST FILE="c:\yrbs1991\yrbs1991.dat"/
Q1 1-1 (A) Q2 2-2 (A) Q3 3-3 (A) Q4 4-4 (A)
Q5 5-5 (A) Q6 6-6 (A) Q7 7-7 (A) Q8 8-8 (A)
Q9 9-9 (A) Q10 10-10 (A) Q11 11-11 (A)
Q12 12-12 (A) Q13 13-13 (A) Q14 14-14 (A)
Q15 15-15 (A) Q16 16-16 (A) Q17 17-17 (A)
Q18 18-18 (A) Q19 19-19 (A) Q20 20-20 (A)
Q21 21-21 (A) Q22 22-22 (A) Q23 23-23 (A)
Q24 24-24 (A) Q25 25-25 (A) Q26 26-26 (A)
Q27 27-27 (A) Q28 28-28 (A) Q29 29-29 (A)
Q30 30-30 (A) Q31 31-31 (A) Q32 32-32 (A)
Q33 33-33 (A) Q34 34-34 (A) Q35 35-35 (A)
Q36 36-36 (A) Q37 37-37 (A) Q38 38-38 (A)
Q39 39-39 (A) Q40 40-40 (A) Q41 41-41 (A)
Q42 42-42 (A) Q43 43-43 (A) Q44 44-44 (A)
Q45 45-45 (A) Q46 46-46 (A) Q47 47-47 (A)
Q48 48-48 (A) Q49 49-49 (A) Q50 50-50 (A)
Q51 51-51 (A) Q52 52-52 (A) Q53 53-53 (A)
Q54 54-54 (A) Q55 55-55 (A) Q56 56-56 (A)
Q57 57-57 (A) Q58 58-58 (A) Q59 59-59 (A)
Q60 60-60 (A) Q61 61-61 (A) Q62 62-62 (A)
Q63 63-63 (A) Q64 64-64 (A) Q65 65-65 (A)
Q66 66-66 (A) Q67 67-67 (A) Q68 68-68 (A)
Q69 69-69 (A) Q70 70-70 (A) Q71 71-71 (A)
Q72 72-72 (A) Q73 73-73 (A) Q74 74-74 (A)
Q75 75-75 (A) weight 76-83 psu 84-86
stratum 87-91 GREG 92-92 (A).
EXECUTE.
VARIABLE LABELS
Q1 "HOW OLD ARE YOU"
Q2 "WHAT IS YOUR SEX"
Q3 "IN WHAT GRADE ARE YOU"
Q4 "HOW DO YOU DESCRIBE YOURSELF"
Q5 "WHAT KIND OF STUDENT ARE YOU"
Q6 "HOW OFTEN WEAR SEAT BELT WITH SOMEONE"
Q7 "HOW MANY TIMES RIDE MOTORCYCLE"
Q8 "HOW OFTEN WEAR HELMET RIDING MOTORCYCLE"
Q9 "HOW OFTEN RIDE BICYCLE"
Q10 "HOW OFTEN WEAR HELMET RIDING BICYCLE"
Q11 "HOW OFTEN RIDE WITH DRINKING DRIVER"
Q12 "HOW MANY TIMES DRIVE WHILE DRINKING"
Q13 "HOW MANY TIMES SWIM WITH SUPERVISION"
Q14 "HOW MANY TIMES CARRY WEAPON"
Q15 "WHAT KIND OF WEAPON DID YOU CARRY"
Q16 "HOW MANY TIMES IN PHYSICAL FIGHT"
Q17 "WITH WHOM DID YOU FIGHT IN LAST FIGHT"
Q18 "HOW MANY TIMES INJURED IN FIGHT"
Q19 "HAVE YOU SERIOUSLY CONSIDERED SUICIDE"
Q20 "DID YOU MAKE A PLAN ABOUT SUICIDE"
Q21 "HOW MANY TIMES DID ATTEMPT SUICIDE"
Q22 "DID SUICIDE ATTEMPT RESULT IN INJURY"
Q23 "HAVE YOU EVER TRIED CIGARETTE SMOKING"
Q24 "WILL YOU TRY CIGARETTES NEXT 12 MONTHS"
Q25 "AGE WHEN SMOKED FIRST CIGARETTE"
Q26 "EVER SMOKED CIGARETTES REGULARLY"
Q27 "AGE WHEN STARTED SMOKING REGULARLY"
Q28 "HOW MANY DAYS DID YOU SMOKE CIGARETTES"
Q29 "HOW MANY CIGARETTES PER DAY"
Q30 "TRY TO QUIT SMOKING LAST 6 MONTHS"
Q31 "DID YOU USE CHEWING TOBACCO OR SNUFF"
Q32 "AGE OF FIRST DRINK OF ALCOHOL"
Q33 "HOW MANY DAYS IN LIFE AT LEAST ONE DRINK"
Q34 "HOW MANY PAST 30 DAYS AT LEAST ONE DRINK"
Q35 "HOW MANY PAST 30 DAYS 5 OR MORE DRINKS"
Q36 "HOW OLD WHEN FIRST USED MARIJUANA"
Q37 "HOW MANY TIMES IN LIFE USED MARIJUANA"
Q38 "HOW MANY TIMES PAST 30 DAYS MARIJUANA"
Q39 "HOW OLD WHEN FIRST USED COCAINE"
Q40 "HOW MANY TIMES IN LIFE USED COCAINE"
Q41 "HOW MANY TIMES PAST 30 DAYS USE COCAINE"
Q42 "HOW MANY TIMES IN LIFE CRACK/FREEBASE"
Q43 "HOW MANY TIMES IN LIFE USE ILLEGAL DRUGS"
Q44 "HOW MANY TIMES IN LIFE USED STEROIDS"
Q45 "EVER IN LIFE INJECTED ILLEGAL DRUG"
Q46 "EVER TAUGHT ABOUT AIDS/HIV IN SCHOOL"
Q47 "EVER TALKED ABOUT AIDS WITH PARENTS"
Q48 "EVER HAD SEXUAL INTERCOURSE"
Q49 "AGE WHEN FIRST HAD SEXUAL INTERCOURSE"
Q50 "HOW MUCH SEXUAL INTERCOURSE IN LIFE"
Q51 "HOW MUCH SEX IN PAST 3 MONTHS"
Q52 "USE ALCOHOL OR DRUGS BEFORE LAST SEX"
Q53 "USE CONDOM DURING LAST SEX"
Q54 "WHAT BIRTH CONTROL USED DURING LAST SEX"
Q55 "HOW MANY BEEN/GOTTEN SOMEONE PREGNANT"
Q56 "EVER BEEN TOLD THAT YOU HAVE A STD"
Q57 "HOW DO YOU THINK OF YOURSELF"
Q58 "WHICH ARE YOU TRYING TO DO"
Q59 "WHICH DID YOU DO TO LOSE WEIGHT"
Q60 "WHICH DID YOU DO TO LOSE WEIGHT"
Q61 "YESTERDAY DID YOU EAT FRUIT"
Q62 "YESTERDAY DID YOU DRINK FRUIT JUICE"
Q63 "YESTERDAY DID YOU EAT GREEN SALAD"
Q64 "YESTERDAY DID YOU EAT COOKED VEGETABLES"
Q65 "YESTERDAY DID YOU EAT HAMBURGER"
Q66 "YESTERDAY DID YOU EAT FRENCH FRIES"
Q67 "YESTERDAY DID YOU EAT COOKIES"
Q68 "HOW MANY PAST 7 DAYS DO HARD EXERCISE"
Q69 "HOW MANY PAST 7 DAYS DO STRETCHING"
Q70 "HOW MANY PAST 7 DAYS DO TONING EXERCISE"
Q71 "YESTERDAY DID YOU WALK OR BICYCLE"
Q72 "HOW MANY DAYS DO YOU GO TO PE CLASS"
Q73 "HOW MANY MINUTES EXERCISE IN PE CLASS"
Q74 "ON HOW MANY TEAMS AT SCHOOL"
Q75 "ON HOW MANY TEAMS OUTSIDE SCHOOL"
weight "Analysis weight"
stratum "Stratum"
psu "PSU"
GREG "Geographic Region".
VALUE LABELS
Q1
1 "12 years old or younger"
2 "13 years old"
3 "14 years old"
4 "15 years old"
5 "16 years old"
6 "17 years old"
7 "18 years or older"
/
Q2
1 "Female"
2 "Male"
/
Q3
1 "9th grade"
2 "10th grade"
3 "11th grade"
4 "12th grade"
5 "Ungraded or other"
/
Q4
1 "White - not Hispanic"
2 "Black - not Hispanic"
3 "Hispanic"
4 "Asian or Pacific Islander"
5 "Native American or Alaskan"
6 "Other"
/
Q5
1 "One of the best"
2 "Far above the middle"
3 "A little above the middle"
4 "In the middle"
5 "A little below the middle"
6 "Far below the middle"
7 "Near the bottom"
/
Q6
1 "Never"
2 "Rarely"
3 "Sometimes"
4 "Most of the time"
5 "Always"
/
Q7
1 "0 times"
2 "1 to 10 times"
3 "11 to 20 times"
4 "21 to 39 times"
5 "40 or more times"
/
Q8
1 "Did not ride a motorcycle"
2 "Never"
3 "Rarely"
4 "Sometimes"
5 "Most of the time"
6 "Always"
/
Q9
1 "0 times"
2 "1 to 10 times"
3 "11 to 20 times"
4 "21 to 39 times"
5 "40 or more times"
/
Q10
1 "Did not ride a bicycle"
2 "Never"
3 "Rarely"
4 "Sometimes"
5 "Most of the time"
6 "Always"
/
Q11
1 "0 times"
2 "1 time"
3 "2 or 3 times"
4 "4 or 5 times"
5 "6 or more times"
/
Q12
1 "0 times"
2 "1 time"
3 "2 or 3 times"
4 "4 or 5 times"
5 "6 or more times"
/
Q13
1 "Did not go swimming"
2 "Never"
3 "Rarely"
4 "Sometimes"
5 "Most of the time"
6 "Always"
/
Q14
1 "0 days"
2 "1 day"
3 "2 or 3 days"
4 "4 or 5 days"
5 "6 or more days"
/
Q15
1 "Did not carry a weapon"
2 "A handgun"
3 "Other guns"
4 "A knife or razor"
5 "A club, stick, bat, or pipe"
6 "Some other weapon"
/
Q16
1 "0 times"
2 "1 time"
3 "2 or 3 times"
4 "4 or 5 times"
5 "6 or 7 times"
6 "8 or 9 times"
7 "10 or 11 times"
8 "12 or more times"
/
Q17
1 "Never been in a fight"
2 "Total stranger"
3 "Friend or some I know"
4 "Boyfriend, girlfriend, date"
5 "Family member"
6 "Someone not listed above"
7 "More than one of the above"
/
Q18
1 "0 times"
2 "1 time"
3 "2 or 3 times"
4 "4 or 5 times"
5 "6 or more times"
/
Q19
1 "Yes"
2 "No"
/
Q20
1 "Yes"
2 "No"
/
Q21
1 "0 times"
2 "1 time"
3 "2 or 3 times"
4 "4 or 5 times"
5 "6 or more times"
/
Q22
1 "Did not attempt suicide"
2 "Yes"
3 "No"
/
Q23
1 "Yes"
2 "No"
/
Q24
1 "Already tried smoking"
2 "Yes"
3 "No"
/
Q25
1 "Never smoked a cigarette"
2 "Less than 9 years old"
3 "9 or 10 years old"
4 "11 or 12 years old"
5 "13 or 14 years old"
6 "15 or 16 years old"
7 "17 or more years old"
/
Q26
1 "Yes"
2 "No"
/
Q27
1 "Never smoked regularly"
2 "Less than 9 years old"
3 "9 or 10 years old"
4 "11 or 12 years old"
5 "13 or 14 years old"
6 "15 or 16 years old"
7 "17 or more years old"
/
Q28
1 "0 days"
2 "1 or 2 days"
3 "3 to 5 days"
4 "6 to 9 days"
5 "10 to 19 days"
6 "20 to 29 days"
7 "All 30 days"
/
Q29
1 "Did not smoke"
2 "Less than 1 per day"
3 "1 per day"
4 "2 to 5 per day"
5 "6 to 10 per day"
6 "11 to 20 per day"
7 "More than 20 per day"
/
Q30
1 "Did not smoke"
2 "Yes"
3 "No"
/
Q31
1 "No"
2 "Yes, chewing tobacco only"
3 "Yes, snuff only"
4 "Yes, both tobacco and snuff"
/
Q32
1 "Never drank alcohol"
2 "Less than 9 years old"
3 "9 to 10 years old"
4 "11 to 12 years old"
5 "13 to 14 years old"
6 "15 to 16 years old"
7 "17 or more years old"
/
Q33
1 "0 days"
2 "1 or 2 days"
3 "3 to 9 days"
4 "10 to 19 days"
5 "20 to 39 days"
6 "40 to 99 days"
7 "100 or more days"
/
Q34
1 "0 days"
2 "1 or 2 days"
3 "3 to 5 days"
4 "6 to 9 days"
5 "10 to 19 days"
6 "20 to 29 days"
7 "All 30 days"
/
Q35
1 "0 days"
2 "1 day"
3 "2 days"
4 "3 to 5 days"
5 "6 to 9 days"
6 "10 to 19 days"
7 "20 or more days"
/
Q36
1 "Never tried marijuana"
2 "Less than 9 years old"
3 "9 or 10 years old"
4 "11 or 12 years old"
5 "13 or 14 years old"
6 "15 or 16 years old"
7 "17 or more years old"
/
Q37
1 "0 times"
2 "1 or 2 times"
3 "3 to 9 times"
4 "10 to 19 times"
5 "20 to 39 times"
6 "40 to 99 times"
7 "100 or more times"
/
Q38
1 "0 times"
2 "1 or 2 times"
3 "3 to 9 times"
4 "10 to 19 times"
5 "20 to 39 times"
6 "40 or more times"
/
Q39
1 "Never tried cocaine"
2 "Less than 9 years old"
3 "9 or 10 years old"
4 "11 or 12 years old"
5 "13 or 14 years old"
6 "15 or 16 years old"
7 "17 or more years old"
/
Q40
1 "0 times"
2 "1 or 2 times"
3 "3 to 9 times"
4 "10 to 19 times"
5 "20 to 39 times"
6 "40 or more times"
/
Q41
1 "0 times"
2 "1 or 2 times"
3 "3 to 9 times"
4 "10 to 19 times"
5 "20 to 39 times"
6 "40 or more times"
/
Q42
1 "0 times"
2 "1 or 2 times"
3 "3 to 9 times"
4 "10 to 19 times"
5 "20 to 39 times"
6 "40 or more times"
/
Q43
1 "0 times"
2 "1 or 2 times"
3 "3 to 9 times"
4 "10 to 19 times"
5 "20 to 39 times"
6 "40 or more times"
/
Q44
1 "0 times"
2 "1 or 2 times"
3 "3 to 9 times"
4 "10 to 19 times"
5 "20 to 39 times"
6 "40 or more times"
/
Q45
1 "Yes"
2 "No"
/
Q46
1 "Yes"
2 "No"
3 "Not sure"
/
Q47
1 "Yes"
2 "No"
3 "Not sure"
/
Q48
1 "Yes"
2 "No"
/
Q49
1 "Never had sexual intercourse"
2 "Less than 12 years old"
3 "12 years old"
4 "13 years old"
5 "14 years old"
6 "15 years old"
7 "16 years old"
8 "17 or more years old"
/
Q50
1 "Never had sexual intercourse"
2 "1 person"
3 "2 people"
4 "3 people"
5 "4 people"
6 "5 people"
7 "6 or more people"
/
Q51
1 "Never had sexual intercourse"
2 "None in past 3 months"
3 "1 person"
4 "2 people"
5 "3 people"
6 "4 people"
7 "5 people"
8 "6 or more people"
/
Q52
1 "Never had sexual intercourse"
2 "Yes"
3 "No"
/
Q53
1 "Never had sexual intercourse"
2 "Yes"
3 "No"
/
Q54
1 "Never had sexual intercourse"
2 "No method"
3 "Birth control pills"
4 "Condoms"
5 "Withdrawal"
6 "Some other method"
7 "Not sure"
/
Q55
1 "0 times"
2 "1 time"
3 "2 or more times"
4 "Not sure"
/
Q56
1 "Yes"
2 "No"
/
Q57
1 "Very underweight"
2 "Slightly underweight"
3 "About the right weight"
4 "Slightly overweight"
5 "Very overweight"
/
Q58
1 "Lose weight"
2 "Gain weight"
3 "Stay the same weight"
4 "Not trying to do anything"
/
Q59
1 "Did not do anything"
2 "Dieted"
3 "Exercised"
4 "Exercised and dieted"
5 "Other method"
/
Q60
1 "Did not do anything"
2 "Made myself vomit"
3 "Took diet pills"
4 "Vomiting and diet pills"
5 "Other method"
/
Q61
1 "No"
2 "Yes, once only"
3 "Yes, twice or more"
/
Q62
1 "No"
2 "Yes, once only"
3 "Yes, twice or more"
/
Q63
1 "No"
2 "Yes, once only"
3 "Yes, twice or more"
/
Q64
1 "No"
2 "Yes, once only"
3 "Yes, twice or more"
/
Q65
1 "No"
2 "Yes, once only"
3 "Yes, twice or more"
/
Q66
1 "No"
2 "Yes, once only"
3 "Yes, twice or more"
/
Q67
1 "No"
2 "Yes, once only"
3 "Yes, twice or more"
/
Q68
1 "0 days"
2 "1 day"
3 "2 days"
4 "3 days"
5 "4 days"
6 "5 days"
7 "6 days"
8 "7 days"
/
Q69
1 "0 days"
2 "1 day"
3 "2 days"
4 "3 days"
5 "4 days"
6 "5 days"
7 "6 days"
8 "7 days"
/
Q70
1 "0 days"
2 "1 day"
3 "2 days"
4 "3 days"
5 "4 days"
6 "5 days"
7 "6 days"
8 "7 days"
/
Q71
1 "Yes"
2 "No"
/
Q72
1 "0 days"
2 "1 day"
3 "2 days"
4 "3 days"
5 "4 days"
6 "5 days"
/
Q73
1 "Do not take PE"
2 "Less than 10 minutes"
3 "10 to 20 minutes"
4 "21 to 30 minutes"
5 "More than 30 minutes"
/
Q74
1 "None"
2 "1 team"
3 "2 teams"
4 "3 or more teams"
/
Q75
1 "None"
2 "1 team"
3 "2 teams"
4 "3 or more teams"
/
GREG
1 "Northeast"
2 "Midwest"
3 "South"
4 "West"
/.
MISSING VALUES
Q1 (" ") Q2 (" ") Q3 (" ") Q4 (" ")
Q5 (" ") Q6 (" ") Q7 (" ")
Q8 (" ") Q9 (" ") Q10 (" ")
Q11 (" ") Q12 (" ") Q13 (" ")
Q14 (" ") Q15 (" ") Q16 (" ")
Q17 (" ") Q18 (" ") Q19 (" ")
Q20 (" ") Q21 (" ") Q22 (" ")
Q23 (" ") Q24 (" ") Q25 (" ")
Q26 (" ") Q27 (" ") Q28 (" ")
Q29 (" ") Q30 (" ") Q31 (" ")
Q32 (" ") Q33 (" ") Q34 (" ")
Q35 (" ") Q36 (" ") Q37 (" ")
Q38 (" ") Q39 (" ") Q40 (" ")
Q41 (" ") Q42 (" ") Q43 (" ")
Q44 (" ") Q45 (" ") Q46 (" ")
Q47 (" ") Q48 (" ") Q49 (" ")
Q50 (" ") Q51 (" ") Q52 (" ")
Q53 (" ") Q54 (" ") Q55 (" ")
Q56 (" ") Q57 (" ") Q58 (" ")
Q59 (" ") Q60 (" ") Q61 (" ")
Q62 (" ") Q63 (" ") Q64 (" ")
Q65 (" ") Q66 (" ") Q67 (" ")
Q68 (" ") Q69 (" ") Q70 (" ")
Q71 (" ") Q72 (" ") Q73 (" ")
Q74 (" ") Q75 (" ")
weight (" ")
stratum (" ")
psu (" ")
greg (" ").
Formats weight (F8.6) .
EXECUTE.
SAVE OUTFILE='c:\yrbs1991\yrbs1991.sav'
/COMPRESSED.
EXECUTE.
GET FILE='c:\yrbs1991\yrbs1991.sav'.
EXECUTE.