/****************************************************************************************/
/* This SAS program reads ASCII format (text format) 2013 YRBS data and creates a */
/* formatted and labeled SAS dataset. */
/* */
/* Change the file location specifications from 'c:\YRBS2013' to the location where */
/* you have stored the YRBS ASCII data file and the format library before you run this */
/* program. Change the location specification in three places - in the 'filename' */
/* statement and in the two 'libname' statements at the top of the program. */
/* */
/* Note: Run '2013XXH Formats Program.sas' BEFORE you run */
/* '2013XXH SAS Input Program.sas' to create the 2013YRBS dataset. */
/****************************************************************************************/
filename datain 'c:\yrbs2013\yrbs2013.dat';
libname dataout 'c:\yrbs2013';
libname library 'c:\yrbs2013';
data dataout.yrbs2013 ;
infile datain lrecl=450;
Input
@17 Q1 $1.
@18 Q2 $1.
@19 Q3 $1.
@20 Q4 $1.
@21 Q5 $8.
@29 Q6 4.2
@33 Q7 6.2
@39 Q8 $1.
@40 Q9 $1.
@41 Q10 $1.
@42 Q11 $1.
@43 Q12 $1.
@44 Q13 $1.
@45 Q14 $1.
@46 Q15 $1.
@47 Q16 $1.
@48 Q17 $1.
@49 Q18 $1.
@50 Q19 $1.
@51 Q20 $1.
@52 Q21 $1.
@53 Q22 $1.
@54 Q23 $1.
@55 Q24 $1.
@56 Q25 $1.
@57 Q26 $1.
@58 Q27 $1.
@59 Q28 $1.
@60 Q29 $1.
@61 Q30 $1.
@62 Q31 $1.
@63 Q32 $1.
@64 Q33 $1.
@65 Q34 $1.
@66 Q35 $1.
@67 Q36 $1.
@68 Q37 $1.
@69 Q38 $1.
@70 Q39 $1.
@71 Q40 $1.
@72 Q41 $1.
@73 Q42 $1.
@74 Q43 $1.
@75 Q44 $1.
@76 Q45 $1.
@77 Q46 $1.
@78 Q47 $1.
@79 Q48 $1.
@80 Q49 $1.
@81 Q50 $1.
@82 Q51 $1.
@83 Q52 $1.
@84 Q53 $1.
@85 Q54 $1.
@86 Q55 $1.
@87 Q56 $1.
@88 Q57 $1.
@89 Q58 $1.
@90 Q59 $1.
@91 Q60 $1.
@92 Q61 $1.
@93 Q62 $1.
@94 Q63 $1.
@95 Q64 $1.
@96 Q65 $1.
@97 Q66 $1.
@98 Q67 $1.
@99 Q68 $1.
@100 Q69 $1.
@101 Q70 $1.
@102 Q71 $1.
@103 Q72 $1.
@104 Q73 $1.
@105 Q74 $1.
@106 Q75 $1.
@107 Q76 $1.
@108 Q77 $1.
@109 Q78 $1.
@110 Q79 $1.
@111 Q80 $1.
@112 Q81 $1.
@113 Q82 $1.
@114 Q83 $1.
@115 Q84 $1.
@116 Q85 $1.
@117 Q86 $1.
@118 Q87 $1.
@119 Q88 $1.
@120 Q89 $1.
@121 Q90 $1.
@122 Q91 $1.
@123 Q92 $1.
@185 QN8 1.
@186 QN9 1.
@187 QN10 1.
@188 QN11 1.
@189 QN12 1.
@190 QN13 1.
@191 QN14 1.
@192 QN15 1.
@193 QN16 1.
@194 QN17 1.
@195 QN18 1.
@196 QN19 1.
@197 QN20 1.
@198 QN21 1.
@199 QN22 1.
@200 QN23 1.
@201 QN24 1.
@202 QN25 1.
@203 QN26 1.
@204 QN27 1.
@205 QN28 1.
@206 QN29 1.
@207 QN30 1.
@208 QN31 1.
@209 QN32 1.
@210 QN33 1.
@211 QN34 1.
@212 QN35 1.
@213 QN36 1.
@214 QN37 1.
@215 QN38 1.
@216 QN39 1.
@217 QN40 1.
@218 QN41 1.
@219 QN42 1.
@220 QN43 1.
@221 QN44 1.
@222 QN45 1.
@223 QN46 1.
@224 QN47 1.
@225 QN48 1.
@226 QN49 1.
@227 QN50 1.
@228 QN51 1.
@229 QN52 1.
@230 QN53 1.
@231 QN54 1.
@232 QN55 1.
@233 QN56 1.
@234 QN57 1.
@235 QN58 1.
@236 QN59 1.
@237 QN60 1.
@238 QN61 1.
@239 QN62 1.
@240 QN63 1.
@241 QN64 1.
@242 QN65 1.
@243 QN66 1.
@244 QN67 1.
@245 QN68 1.
@246 QN69 1.
@247 QN70 1.
@248 QN71 1.
@249 QN72 1.
@250 QN73 1.
@251 QN74 1.
@252 QN75 1.
@253 QN76 1.
@254 QN77 1.
@255 QN78 1.
@256 QN79 1.
@257 QN80 1.
@258 QN81 1.
@259 QN82 1.
@260 QN83 1.
@261 QN84 1.
@262 QN85 1.
@263 QN86 1.
@264 QN87 1.
@265 QN88 1.
@266 QN89 1.
@267 QN90 1.
@268 QN91 1.
@269 QN92 1.
@1 SITE $3.
@350 QNFRCIG 1.
@351 QNANYTOB 1.
@352 QNOTHH 1.
@353 QNOTHHPL 1.
@354 QNDUALBC 1.
@355 QNBCNONE 1.
@356 QNFRVG 1.
@357 QNFRUIT 1.
@358 QNFR0 1.
@359 QNFR1 1.
@360 QNFR3 1.
@361 QNVEG 1.
@362 QNVEG0 1.
@363 QNVEG1 1.
@364 QNVEG2 1.
@365 QNFRVG2 1.
@366 QNSODA0 1.
@367 QNSODA2 1.
@368 QNSODA3 1.
@369 QNMILK0 1.
@370 QNMILK1 1.
@371 QNMILK2 1.
@372 QNNOBKFT 1.
@373 QNDLYPE 1.
@374 QNPA0DAY 1.
@375 QNPA7DAY 1.
@376 QNOWT 1.
@377 QNOBESE 1.
@378 WEIGHT 10.4
@388 STRATUM 3.
@391 PSU 6.
@397 BMIPCT 5.2
@402 RACEETH $2.
@404 Q6ORIG $3.
@407 Q7ORIG $3.
;
/****************************************/
/* Assign formats to SAS variables */
/****************************************/
format
Q1 $H1S. Q2 $H2S. Q3 $H3S. Q4 $H4S. Q5 $char8.
Q6 4.2 Q7 6.2 Q8 $H8S. Q9 $H9S. Q10 $H10S.
Q11 $H11S. Q12 $H12S. Q13 $H13S. Q14 $H14S. Q15 $H15S.
Q16 $H16S. Q17 $H17S. Q18 $H18S. Q19 $H19S. Q20 $H20S.
Q21 $H21S. Q22 $H22S. Q23 $H23S. Q24 $H24S. Q25 $H25S.
Q26 $H26S. Q27 $H27S. Q28 $H28S. Q29 $H29S. Q30 $H30S.
Q31 $H31S. Q32 $H32S. Q33 $H33S. Q34 $H34S. Q35 $H35S.
Q36 $H36S. Q37 $H37S. Q38 $H38S. Q39 $H39S. Q40 $H40S.
Q41 $H41S. Q42 $H42S. Q43 $H43S. Q44 $H44S. Q45 $H45S.
Q46 $H46S. Q47 $H47S. Q48 $H48S. Q49 $H49S. Q50 $H50S.
Q51 $H51S. Q52 $H52S. Q53 $H53S. Q54 $H54S. Q55 $H55S.
Q56 $H56S. Q57 $H57S. Q58 $H58S. Q59 $H59S. Q60 $H60S.
Q61 $H61S. Q62 $H62S. Q63 $H63S. Q64 $H64S. Q65 $H65S.
Q66 $H66S. Q67 $H67S. Q68 $H68S. Q69 $H69S. Q70 $H70S.
Q71 $H71S. Q72 $H72S. Q73 $H73S. Q74 $H74S. Q75 $H75S.
Q76 $H76S. Q77 $H77S. Q78 $H78S. Q79 $H79S. Q80 $H80S.
Q81 $H81S. Q82 $H82S. Q83 $H83S. Q84 $H84S. Q85 $H85S.
Q86 $H86S. Q87 $H87XX. Q88 $H88XX. Q89 $H89XX. Q90 $H90XX.
Q91 $H91XX. Q92 $H92XX.
raceeth $HRCE.
;
/****************************************/
/* Assign labels to SAS variables */
/****************************************/
label
Q1="How old are you"
Q2="What is your sex"
Q3="In what grade are you"
Q4="Are you Hispanic/Latino"
Q5="What is your race"
Q6="How tall are you"
Q7="How much do you weigh"
Q8="How often wear bicycle helmet"
Q9="How often wore a seat belt"
Q10="How often ride w/drinking driver 30 days"
Q11="How often drive while drinking 30 days"
Q12="Days text or e-mail while driving 30d"
Q13="Carried weapon 30 days"
Q14="Carried gun 30 days"
Q15="Carried weapon at school 30 days"
Q16="How many days feel unsafe@school 30 days"
Q17="How many times threatened@school 12 mos"
Q18="How many times in fight 12 mos"
Q19="How many times injured in fight 12 mos"
Q20="How many times in fight @ school 12 mos"
Q21="Have you been forced to have sex"
Q22="Times physically hurt by dates 12 mos"
Q23="Forced to do sexual things by dates"
Q24="Have you been bullied @ school past 12 mos"
Q25="Ever been electronically bullied 12 mos"
Q26="Ever feel sad or hopeless 12 mos"
Q27="Ever considered suicide 12 mos"
Q28="Ever make suicide plan 12 mos"
Q29="Times attempted suicide 12 mos."
Q30="Ever injured from suicide attempt 12 mos"
Q31="Ever smoked"
Q32="How old when first smoked"
Q33="How many days smoked 30 days"
Q34="How many cigarettes/day 30 days"
Q35="How did you get cigarettes past 30 days"
Q36="How many days smoke @ school 30 days"
Q37="Have you ever smoked daily"
Q38="Tried to quit smoking past 12 months"
Q39="How many days use snuff past 30 days"
Q40="How many days smoke cigars 30 days"
Q41="How many days drink alcohol"
Q42="How old when first drank alcohol"
Q43="How many days drink alcohol 30 days"
Q44="How many days have 5+ drinks 30 days"
Q45="Max # drinks in a row past 30 days"
Q46="How did you get alcohol past 30 days"
Q47="How many times smoke marijuana"
Q48="How old when first tried marijuana"
Q49="How many times use marijuana 30 days"
Q50="How many times use cocaine"
Q51="How many times sniffed glue"
Q52="How many times used heroin"
Q53="How many times used methamphetamines"
Q54="Ecstasy one or more time"
Q55="How many times used steroids"
Q56="Times prescription drug wo prescription"
Q57="How many times injected drugs"
Q58="If offered drugs @school 12 mos"
Q59="Ever had sex"
Q60="How old at first sex"
Q61="How many sex partners"
Q62="How many sex partners 3 mos"
Q63="Did you use alcohol/drugs @ last sex"
Q64="Did you use condom @ last sex"
Q65="What birth control @ last sex"
Q66="How do you describe your weight"
Q67="What are you trying to do about weight"
Q68="Did you fast to lose weight 30 days"
Q69="Did you take pill to lose weight 30 days"
Q70="Did you vomit to lose weight 30 days"
Q71="How many times fruit juice 7 days"
Q72="How many times fruit 7 days"
Q73="How many time green salad 7 days"
Q74="How many times potatoes 7 days"
Q75="How many times carrots 7 days"
Q76="How many times other vegetables 7 days"
Q77="How many times drink soda past 7 days"
Q78="How many glass of milk 7 days"
Q79="How often ate breakfast past 7 days"
Q80="Days active 60 min plus past 7 days"
Q81="How many hours watch TV"
Q82="How many hours/day play video games"
Q83="How many days go to PE class"
Q84="On how many sports team 12 mos"
Q85="Ever taught about AIDS/HIV @ school"
Q86="Ever been told you have asthma"
Q87="Ever used LSD"
Q88="Did you do toning exercise 7 days"
Q89="Ever tested for HIV"
Q90="Sunscreen use outside"
Q91="How many times indoor tanning"
Q92="Hours of sleep on school night"
QN8="Never/rarely wore bicycle helmet"
QN9="Never/rarely wore seat belt"
QN10="Rode 1+ times with drinking driver"
QN11="Drove 1+ times when drinking"
QN12="Texted or e-mailed while driving"
QN13="Carried weapon 1+ times past 30 days"
QN14="Carried gun 1+ past 30 days"
QN15="Carried weapon school 1+ past 30 days"
QN16="Missed school b/c unsafe 1+ 30 days"
QN17="Threatened at school 1+ times 12 mos"
QN18="Fought 1+ times 12 mos"
QN19="Injured/treated 1+ times 12 mos"
QN20="Fought school 1+ times 12 mos"
QN21="Forced to have sex"
QN22="Hurt by date 1+ times past 12 mos"
QN23="Forced to do sexual by date past 12 mos"
QN24="Bullied at school 12 mos"
QN25="Electronically bullied 12 mos"
QN26="Sad 2 wks past 12 mos"
QN27="Considered suicide 12 mos"
QN28="Made suicide plan 12 mos"
QN29="Attempted suicide 1+ times 12 mos"
QN30="Suicide attempt w/injury 12 mos"
QN31="Ever tried cigarettes"
QN32="Smoked cigarette before 13"
QN33="Smoked 1+ past 30 days"
QN34="Smoked >10 cigarettes/day past 30 days"
QN35="Got cigarettes in store 30 days"
QN36="Smoked at school 1+ past 30 days"
QN37="Smoked daily for 30 days"
QN38="Among smokers, tried to quit smoking"
QN39="Used snuff/dip 1+ past 30 days"
QN40="Smoked cigars 1+ past 30 days"
QN41="Had 1 drink on 1+ days in life"
QN42="Had first drink before 13"
QN43="Had 1+ drinks past 30 days"
QN44="Five+ drinks 1+ past 30 days"
QN45="10+ drinks in a row past 30 days"
QN46="Someone gave alcohol to me past 30 days"
QN47="Tried marijuana 1+ times in life"
QN48="Tried marijuana before 13"
QN49="Used marijuana 1+ times past 30 days"
QN50="Used cocaine 1+ times in life"
QN51="Sniffed glue 1+ times in life"
QN52="Used heroin 1+ times in life"
QN53="Used meth 1+ times in life"
QN54="Used ecstasy 1+ times in life"
QN55="Took steroids 1+ times in life"
QN56="Taken prescription drug wo prescription"
QN57="Injected drugs 1+ times in life"
QN58="Offered/sold drugs at school 12 mos"
QN59="Had sex ever"
QN60="Had sex before 13"
QN61="Had sex with 4+ people in life"
QN62="Had sex with 1+ people 3 mos"
QN63="Of current sex, used alcohol last time"
QN64="Of current sex, used condom last time"
QN65="Of current sex, used bc pills last sex"
QN66="Slightly/very overweight"
QN67="Trying to lose weight"
QN68="Fasted to lose weight past 30 days"
QN69="Took pills to lose weight past 30 days"
QN70="Vomited to lose weight past 30 days"
QN71="Drank fruit juice past 7 days"
QN72="Ate fruit past 7 days"
QN73="Ate green salad past 7 days"
QN74="Ate potatoes past 7 days"
QN75="Ate carrots past 7 days"
QN76="Ate vegetables past 7 days"
QN77="Drank soda 1+ times/day past 7 days"
QN78="Drank 3+ glasses milk/day past 7 days"
QN79="Ate breakfast on all of the past 7 days"
QN80="Active 60 min on 5+ past 7 days"
QN81="Watched 3+ hours of TV average day"
QN82="Played video games 3+ hours/day"
QN83="Attended PE class 1+ days average week"
QN84="Played on 1+ sports teams past 12 mos"
QN85="Taught about AIDS/HIV @ school"
QN86="Told by doctor/nurse they had asthma"
QN87="Used LSD 1+ times"
QN88="Strengthened muscles 3+ of past 7 days"
QN89="Tested for HIV"
QN90="Mostly or always wear sunscreen"
QN91="Used 1+ times indoor tanning"
QN92="Get 8+ hours sleep"
site="Site Code"
qnfrcig="Smoked on 20 past 30 days"
qnanytob="Used any tobacco past 30 days"
qnothh="Of current sex, used Depo last sex"
qnothhpl="Of current sex, birth ctrl/Depo last sex"
qndualbc="Of current sex, condom + birth ctrl/Depo"
qnbcnone="Of current sex, no birth ctrl"
qnfrvg="Ate 5+ fruits/vegetables/day 7 days"
qnfruit="Ate 2+ fruits 7 days"
qnfr0="Ate fruit/drank juice 0 times/day"
qnfr1="Ate fruit/drank juice 1+ times/day"
qnfr3="Ate fruit/drank juice 3+ times/day"
qnveg="Ate 3+ vegetables 7 days"
qnveg0="Ate 0 vegetables/day 7 days"
qnveg1="Ate 1+ vegetables/day 7 days"
qnveg2="Ate 2+ vegetables/day 7 days"
qnfrvg2="Ate 2+ fruits/3+ veg/day 7 days"
qnsoda0="Drank soda 0 times/day past 7 days"
qnsoda2="Drank soda 2+ times/day past 7 days"
qnsoda3="Drank soda 3+ times/day past 7 days"
qnmilk0="Drank 0 glasses milk/day past 7 days"
qnmilk1="Drank 1+ glasses milk/day past 7 days"
qnmilk2="Drank 2+ glasses milk/day past 7 days"
qnnobkft="Ate breakfast on none of the past 7 days"
qndlype="Attended PE class daily"
qnpa0day="Physically active 0 of past 7 days"
qnpa7day="Physically active 7 of past 7 days"
qnowt="Overweight"
qnobese="Obese"
weight="Weight"
stratum="Stratum"
psu="Primary Sampling Unit"
bmipct="Body Mass Index Percentage"
raceeth="Race/Ethnicity"
q6orig="Original value of Q6"
q7orig="Original value of Q7"
;
run;
国产精品久久久久久一级毛片