Assignment Related To Sleep Data
Questions:
1. Generate appropriate descriptive statistics to answer the following questions.
a) What percentge of respondents are female (gender)?
b) What is the average age of the sample?
c) What percentage of sample indicated that they had a problem with their sleep (probsleeprec)?
d) What is the median number of hours sleep per weeknight (hoursweeknight)?
2. Assess the distribution of scores on the sleepiness and associated sensations scale (totSAS) for the people who feel that they do/ don't have a sleep problem (probsleeprec)
a) Are there any outliners on the scale that you would be concerned about?
b) Are scores normally distributed for each group?
3. Generate a histogram to explore the distribution of score on the Epworth sleepiness scale (ess).
4. Generate a bar graph to compare scores on the sleepiness and associated sensations scale (totSAS) across three ages (agegp3) for males and females (gender).
5. Generate a scatterplot to explore the relationship between scores on the epworth sleepiness scale (ess) and the sleepiness and associated sensations scale (totSAS). Ask for different markers for males and females (gender).
6. Check distribution (using histogram) of the variable that measures the number of cigarettes smoked per day by the smokers in the sample (smokenum), Comments on the distribution?