Please use D2L to turn in both the HTML output and your R Markdown file in.
Use a dataset containing baseball batting averages and fit a hierarchical model with the groups as the player positions. Your goal is to model batting averages of the players and assess the differences between the player positions in this dataset.
BattingAverage <- read.csv('http://math.montana.edu/ahoegh/teaching/stat491/data/BattingAverage.csv')
head(BattingAverage)
## Player PriPos Hits AtBats PlayerNumber PriPosNumber
## 1 Fernando Abad Pitcher 1 7 1 1
## 2 Bobby Abreu Left Field 53 219 2 7
## 3 Tony Abreu 2nd Base 18 70 3 4
## 4 Dustin Ackley 2nd Base 137 607 4 4
## 5 Matt Adams 1st Base 21 86 5 3
## 6 Nathan Adcock Pitcher 0 1 6 1
Assume this is an analysis you have been asked to perform as part of a job interview. Write a 1-2 page summary of your analysis using R Markdown. This should include an introduction and conclusion.