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,2 ,2 ,2 ,1 ,3 0 ,1 ,2 ,2 ,2 ,1 ,3 2 ,0 ,3 ,2 ,2 ,1 ,3 0 ,1 ,3 ,2 ,2 ,1 ,3 47 ,0 ,1 ,1 ,1 ,2 ,3 5 ,1 ,1 ,1 ,1 ,2 ,3 39 ,0 ,2 ,1 ,1 ,2 ,3 0 ,1 ,2 ,1 ,1 ,2 ,3 182 ,0 ,3 ,1 ,1 ,2 ,3 3 ,1 ,3 ,1 ,1 ,2 ,3 15 ,0 ,1 ,2 ,1 ,2 ,3 3 ,1 ,1 ,2 ,1 ,2 ,3 1 ,0 ,2 ,2 ,1 ,2 ,3 0 ,1 ,2 ,2 ,1 ,2 ,3 23 ,0 ,3 ,2 ,1 ,2 ,3 0 ,1 ,3 ,2 ,1 ,2 ,3 2 ,0 ,1 ,1 ,2 ,2 ,3 0 ,1 ,1 ,1 ,2 ,2 ,3 187 ,0 ,2 ,1 ,2 ,2 ,3 3 ,1 ,2 ,1 ,2 ,2 ,3 340 ,0 ,3 ,1 ,2 ,2 ,3 2 ,1 ,3 ,1 ,2 ,2 ,3 0 ,0 ,1 ,2 ,2 ,2 ,3 0 ,1 ,1 ,2 ,2 ,2 ,3 2 ,0 ,2 ,2 ,2 ,2 ,3 0 ,1 ,2 ,2 ,2 ,2 ,3 3 ,0 ,3 ,2 ,2 ,2 ,3 0 ,1 ,3 ,2 ,2 ,2 ,3 * commands to set up dataset label data "A study to discover factors that relate to lung disease byssinosis." label variable count "Frequency in a given category" label variable bys "Suffering from byssinosis. 0 = no, 1 = yes" label variable dust "Dustiness of workplace, 1 = high, 2 = medium, 3 = low" label variable race "1 = white, 2 = other" label variable sex "1 = male, 2 = female" label variable smoker "1 = yes, 2 = no" label variable emplength "Length of employment, 1 = <10 years, 2 = 10-20 years, 3 = >20 years" label define byslab 0 no 1 yes label define dustlab 1 high 2 medium 3 low label define racelab 1 white 2 other label define sexlab 1 male 2 female label define smokerlab 1 yes 2 no label define emplengthlab 1 "<10 years" 2 "10-20 years" 3 ">20 years" label values bys byslab label values dust dustlab label values race racelab label values sex sexlab label values smoker smokerlab label values emplength emplengthlab save "F:\USERS\Erik\UNM\ta\stat539\stata_work\byssinosis.dta"