ABSTRACT

For example, let us say that we want to evaluate the association between alcohol intake (exposure) and a diagnosis of myocardial infarction (MI) over a period of 5 years, controlling for the effect of cigarette smoking (potential confounding variable). To analyze this type of study in Stata, we can use the following data:

Between the parentheses are the codes for each category (1 indicates presence and 0 indicates absence).