You are on page 1of 1

Basic knowledge in STATA

Name:
___________________________________________________________________

Open a .log file to record all your activity (save it with your name)
Open the provided .do file for the development of this practice

1. How many people are included in this database? How many are men and how
many are women, and what percentage is each?
2. What is the average age of men and women included in the study at the first
visit, what is their standard deviation, and their range?
3. Graph the distribution of age1 by sex and describe how you observe its
distribution. Is it normal?
4. What is the incidence of anychd (any cardiovascular event) in men and
women? Who has more cardiovascular events?
5. What is the incidence of mortality (death) among men and women? Which
gender has more events?
6. Calculate the incidence of hypertension by sex. Which group has a higher
incidence?
7. Conduct a descriptive analysis of the measures of central tendency and
dispersion of systolic blood pressure at the first visit, in the total population
and by sex. Create a graph showing its distribution by sex. What do you think
the distribution of this variable is like?
8. Conduct a descriptive analysis of the measures of central tendency and
dispersion of diastolic blood pressure at the first visit, in the total population
and by sex. Create a graph showing its distribution by sex. What do you think
the distribution of this variable is like?
9. Generate a new variable called sysbp1_cat, to categorize systolic blood
pressure figures based on the 2018 ESC/ESH hypertension consensus.
10. Generate a new variable called diabp1_cat, to categorize diastolic blood
pressure figures based on the 2018 ESC/ESH hypertension consensus.
11. Make a graph of sysbp1_cat. What percentage of patients are systolic
hypertensive in this sample?
12. Make a graph of diabp1_cat. What percentage of patients are diastolic
hypertensive in this sample?
13. Create a box plot for the level of cholesterol at the first visit, by sex. Describe
all the information provided by the graph.

Close your .log file and save your graphical file, then send it via email to
oscarleonel8a@gmail.com and programaekg@gmail.com

You might also like