Today we would like to attempt to complete Questions 7 and 8 of Case Study 1.
A. We want our answers in RMarkdown, so make sure Case Study 1.rmd is in your working directory and that RStudeio is active in the right working directory as well.
B. You will need some of the commands in the Case Study to actually run when you ‘knit’ to define the variables you need in Questions 7 and 8. So I recommend setting ‘eval = TRUE’ in the following gray boxes
C. Make comment boxes as needed to enter and written explanation of your answers. (You know how to do this already.)
This is obvious.
You will be handing in this file. Hints for Questions are below.
Find the t-score for the total score of the UNC-Duke game in question among all UNC games. Use R to make the calculations. Please keep all commands in RMarkdown.
According to the t-score, what percentile did this game come in at for UNC games? Would you call the game especially high-scoring? Explain.
Get a vector (list) of UNC team scores.
Decide whether to use z or t for your interval. Use R to find the appropriate critical z-star or t-star.
Use R to do the calcuations. You are basically using R as a calculator, don’t look for fancy commands.
For Part (b), get p-hat, SE(p-hat), etc. and make the CI. (Do you want z-star or t-star?)
Submit both the RMarkdown file and the knitted html file on Sakai where I will make a new Homework assignment. Don’t worry if you can’t view the html file properly on Sakai. It is a Sakai problem.