**********************************************************; ** Code to read in data for PS 7 **; **********************************************************; ** file: ps7sas.sas **; ** data: ps7dat.txt **; options nocenter; data ps7; infile 'a:\ps7dat.txt'; title 'Problem Set 7 data list code'; input case 1-3 comp 6 susc 8-15 sev 17-24 ben 26-33 barr 35-42; **The following proc format will create a set of descriptions**; **To use the descriptions add a subcommand to any proc **; **specifying the var with your new var followed by a . **; **See the frequencies below as example **; label comp='compliance'; label susc='perceived susceptibility'; label sev='perceived severity'; label ben='perceived benefits'; label barr='perceived barriers'; proc format; value cp 0='not in comp' 1='in compliance'; proc freq; tables comp; format comp cp.; ** remaining code goes here **;