Call us

Epidemiology home of Stata

Order this Paper

Epidemiology home of Stata version 14

  1. Get a general overview of the data using the describe command- this describes all of the data. How many observations and variables are in this dataset? (Paste the first few lines of the output).
  1. Report the mean and standard deviation of participants’ age for exams 1, 2, and 3 (using variables age1, age2, age3). Round to the nearest tenth. Paste the output from your results window.
  1. What is the median age of the participants from exam 1 (50% percentile)? Paste the output from your results window.
  1. Use the ‘tab’ command to tabulate the variable death (death indicator) and angina (Incident angina pectoris).
  1. Of the individuals who died, how many of them had an incidence of angina pectoris? Paste the output from your results window.
  1. Of the individuals who had incidences of angina pectoris, what is the percentage of individuals who are living and what is the percentage of individuals who died? (HINT: use the ‘tab’ command and add an additional command to get the row percentages and frequencies).
  1. According to the American Heart Association, the following is a chart categorizing diastolic blood pressure levels (mm HG):
Blood Pressure Category Diastolic mm HG (lower #)
Normal Less than 80
Prehypertension 80-89
High Blood Pressure (Hypertension) Stage 1 90-99
High Blood Pressure (Hypertension) Stage 2 100 or higher
Hypertensive Crisis (Emergency care needed) Higher than 110

Source: Diastolic Blood Pressure Chart (American Heart Association- AHA)

Using the diabp1 variable, create a new variable for the above categories for diastolic blood pressure. (Hint: use the generate and replace commands we learned in class).  Tabulate and record the number of individuals in each category.  Paste the final table below of your new categorical variable.

  1. All of the graph options in Stata are located in the Graphics
  1. Create a histogram for BMI (using variable bmi1), indicating the frequency on the y-axis. Paste the histogram here.
  1. Generate a new 0/1 indicator variable for sex at first visit (e.g. generate a variable where the value is 1 for women and 0 for men.) Create a 2×2 table of the previous sex variable (sex1) and your new sex variable to show that it was created correctly. Paste the output here.
  1. Re create your histogram for BMI (using variable bmi1), indicating the frequency on the y-axis, this time only for females. Paste the histogram here.
  1. Create a box plot for the diastolic blood pressure variable (diabp1). Now add the variable stroke as a grouping variable and paste the final box plot.

Order this Paper

Both comments and pings are currently closed.

Comments are closed.

Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes