1.II.13I

Statistical Modelling | Part II, 2006

The table below gives a year-by-year summary of the career batting record of the baseball player Babe Ruth. The first column gives his age at the start of each season and the second gives the number of 'At Bats' (AB) he had during the season. For each At Bat, it is recorded whether or not he scored a 'Hit'. The third column gives the total number of Hits he scored in the season, and the final column gives his 'Average' for the season, defined as the number of Hits divided by the number of At Bats.

 Age  AB  Hits  Average 191020.2002092290.31521136370.27222123400.32523317950.300244321390.322254571720.376265402040.378274061280.315285222050.393295292000.378303591340.373314951840.372325401920.356335361730.323344991720.345355181860.359365341990.373393651560.3413072130.1813591380.301321050.28833123\begin{array}{rrrr}\text { Age } & \text { AB } & \text { Hits } & \text { Average } \\ 19 & 10 & 2 & 0.200 \\ 20 & 92 & 29 & 0.315 \\ 21 & 136 & 37 & 0.272 \\ 22 & 123 & 40 & 0.325 \\ 23 & 317 & 95 & 0.300 \\ 24 & 432 & 139 & 0.322 \\ 25 & 457 & 172 & 0.376 \\ 26 & 540 & 204 & 0.378 \\ 27 & 406 & 128 & 0.315 \\ 28 & 522 & 205 & 0.393 \\ 29 & 529 & 200 & 0.378 \\ 30 & 359 & 134 & 0.373 \\ 31 & 495 & 184 & 0.372 \\ 32 & 540 & 192 & 0.356 \\ 33 & 536 & 173 & 0.323 \\ 34 & 499 & 172 & 0.345 \\ 35 & 518 & 186 & 0.359 \\ 36 & 534 & 199 & 0.373 \\ 39 & 365 & 156 & 0.341 \\ 30 & 72 & 13 & 0.181 \\ 359 & 138 & 0.301 \\ 32 & 105 & 0.288 \\ 3 & & & \\ 3 & 123\end{array}

Explain and interpret the R\mathrm{R} commands below. In particular, you should explain the model that is being fitted, the approximation leading to the given standard errors and the test that is being performed in the last line of output.

Assuming that any required packages are loaded, draw a careful sketch of the graph that you would expect to see on entering the following lines of code:

Typos? Please submit corrections to this page on GitHub.