baseball | R Documentation |
Results from repeated games among seven baseball teams, following Agresti
data(baseball)
A hyper2
object that gives a likelihood function
Agresti discusses results from seven baseball teams in the 1987 season of the Eastern Division of the American League.
A results table and likelihood function is given in the package as
baseball_table
and baseball
respectively. The maximum
likelihood estimate is given as baseball_maxp
, but can be
reproduced by maxp(baseball)
.
These objects can be generated by running script
inst/home_advantage.Rmd
, which includes some further discussion
and technical documentation, and creates file baseball.rda
which
resides in the data/
directory.
A. Agresti 2002. “Categorical data analysis”. John Wiley and Sons; p437
hyper3
baseball_table
baseball_table[1:3,1:3]
home_away3(baseball_table[1:3,1:3],1.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.