*ex5_formats.sas; /*------------------------------------------------ ex5_formats.sas sas formats for exmplar 5 use these in your sas programme to get the output lablelled well --------------------------------------------------------*/ proc format ; value living 1="single" 2="sing parent" 3="couple" 4="couple w kids" 5="other" ; value q85a /* cannabis */ 1 = "never used" 2 = "tried once or twice" 3 = "use daily" 4 = "use weekly" 5 = "used in last month" 6 = "used more than a month ago" ; value sinc low-<5.8=1 5.8-<12.4=2 12.4-<18.3=3 18.3-<26.1=4 26.1-high=5; value empl /* employment status */ 1 = "in paid work or self employed - full time" 2 = "in paid work or self employed - part time" 3 = "unemployed" 4 = "intending to look for work but prevented by temp sickness or" 5 = "permanently sick or disabled and not able to work" 6 = "retired" 7 = "looking after the home or family full time" 8 = "in full time education" 9 = "doing something else" 10 = "caring" 11 = "part time study" 12 = "voluntary work" ; value emplalt /* grpd employment status */ 1 = "full time" 2 ,11, 12= "part time" 3 ,4, 5, 6, 9= "unemployed etc" 7 , 10= "home" 8 = "educ" ; value druguse 1 = "never used" 2 = "tried once or twice" 3 = "use daily" 4 = "use weekly" 5 = "used in last month" 6 = "used more than a month ago" ; value sinc low-<5.8=1 5.8-<12.4=2 12.4-<18.3=3 18.3-<26.1=4 26.1-high=5; value qual /* highest qualification */ 1 = "none" 2 = "higher degree in addition to first degree" 3 = "first degree" 4 = "A-levels" 5 = "O-level" 6 = "GNVQ/GSVQ" 7 = "Other" ; value genhelf /* In general, would you say your health is.... */ 1 = "excellent" 2 = "very good" 3 = "good" 4 = "fair" 5 = "poor" ; quit;