Exercise

Exercise 2. Blood pressure 2

Now we will compute the average and standard deviation for the subgroup we defined in the previous exercise (20-29 year old females), which we will use reference for what is typical.

You will determine the average and standard deviation of systolic blood pressure, which are stored in the BPSysAve variable in the NHANES dataset.

Instructions

100 XP
  • Complete the line of code to save the average and standard deviation of systolic blood pressure as average and standard_deviation to a variable called ref.
  • Use the summarize function after filtering for 20-29 year old females and connect the results using the pipe %>%. When doing this remember there are NAs in the data!