Exercise 2 – plotting and statistically describing mental health data

In this exercise we will build on the analysis you undertook in exercise 1 to create plots, descriptive statistics and conduct a statistical test on mental health service use data.

  1. Plot length of stay as a histogram
  2. Describe length of stay
  3. Describe length of stay by cluster
  4. Subset the data by cluster and NA cluster values (is.na)
  5. Create histograms for each cluster subset
  6. Conduct t-tests comparing each cluster subset
  7. Create a box plot of all three cluster subsets

Example code for the completion of this exercise can be found here. Don’t worry if you have achieved the same outcome a slightly different way, there are many ways to do the same task.