************************************************************************** * * * athens.do * * * * PURPOSE: analysis of Tzonou et al. (1998) data investigating * * CHD and iron consumption * * * * DATE: April 6 2004 * * * ************************************************************************** *** *** read the data and format *** infile female age iron case count using http://courses.washington.edu/b513/datasets/athens.dat label define fnames 0 "male" 1 "female" label values female fnames label define anames 1 "<= 49" 2 "50-59" 3 "60-69" 4 ">= 70" label values age anames label define inames 1 "<= 250mg/month" 2 "251-300 mg/month" 3 "301-350 mg/month" 4 "351-400 mg/month" 5 "> 400 mg/month" label values iron inames label define ynames 0 "control" 1 "case" label values case ynames *** *** create a single record per subject *** drop if count==0 expand count drop count *** *** create new iron variable *** generate newiron = 0 replace newiron = 1 if iron >= 4