编程代写 Lab session 1: Questions

Lab session 1: Questions
Question 1: Matt belongs to a golf club in my neighbour-hood. He divides the year into three golf seasons: summer (June-September), winter (November-March), and shoulder (October, April, and May). He believes that he plays his best golf during the summer (because he has more time and the course isn’t crowded) and shoulder (because the course isn’t crowded) seasons, and his worst golf during the winter (because all of the part-year residents show up, the course is crowded, play is slow, and he gets frustrated). Data from the last year are shown in the following table:
Season Summer Shoulder Winter
Observations

Copyright By PowCoder代写 加微信 powcoder

83 85 85 87 90 88 88 84 91 90
91 87 84 87 85 86 83
94 91 87 85 87 91 92 86
a) Create a data frame called ¡®Golf¡¯ in R to store the above data. Use str() command to display the structure of the data.
b) Treat the season as a categorical variable (1 = Summer, 2 = Shoulder, 3 = Winter). Check if the season variable converts into factor.
c) Calculate all the descriptive statistics.
d) Prepare a boxplot that compares between the seasons.
e) Comment on the general distribution of the data using your boxplot as your guide.
Have you identified any outliers?
f) What is the best statistical test to compare outcomes among more than
two independent groups?
g) Does the data indicate that his opinion is correct? Use ¦Á=0.05.
h) Construct the confidence intervals. What do the results tell us?
i) Analyse the residuals from this experiment and comment on model adequacy.

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com