Unit 3
1. The following questions all relate to the “exercise dataset”:
a) Produce descriptive statistics to explore what proportion of the sample fall into each of
the IMD (Indices of Multiple Deprivation) categories, the different exercises categories,
and diet categories.
b) Produce descriptive statistics to explore the central tendences for both of the pain
variables, along with age.
c) Produce descriptive statistics to explore the pain before variable by the history of
glaucoma variable.
d) Produce descriptive statistics to explore whether alcohol consumption is similar before
and after. Do a similar comparison for smoking before and after.
e) Using the descriptives command, produce a column of Z scores for the variable of the
pain before variable. What is the value of the smallest standard deviation away from the
mean (smallest Z value), and what is the value of the largest standard deviation away
from the mean (largest Z value)?
f)
Investigate the normality of the variables height and weight.
g) For the variable that is the least normally distributed in part f), perform a transformation
to correct the skewness and explore the effect.