Titanic.survivors.case | R Documentation |
These data are from the survival log of the Titanic and consist of the number of survivors out of the number of passengers broken down into age, sex and class categories.
data(Titanic.survivors.case)
A data frame with 12 observations on the following 5 variables.
age
a factor with levels child
adult
sex
a factor with levels female
male
class
a factor with levels 1st class
2nd class
3rd class
cases
a numeric vector
survive
a numeric vector
Hilbe (2011) first models these data as a logistic model, then finding that they are overdispersed, modeling them as count data (number of survivors, survive) with offset (log of the number of passengers, cases).
Section 9.5, Example 3, pages 263-268, Hilbe, J. (2011).
Hilbe, J. (2011). Negative Binomial Regression. Cambridge University Press, second edition.
data(Titanic.survivors.case)
print(Titanic.survivors.case)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.