| Titanic.survivors.case {CountsEPPM} | R Documentation |
Titanic survivors data
Description
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.
Usage
data(Titanic.survivors.case)
Format
A data frame with 12 observations on the following 5 variables.
agea factor with levels
childadultsexa factor with levels
femalemaleclassa factor with levels
1st class2nd class3rd classcasesa numeric vector
survivea numeric vector
Details
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).
Source
Section 9.5, Example 3, pages 263-268, Hilbe, J. (2011).
References
Hilbe, J. (2011). Negative Binomial Regression. Cambridge University Press, second edition.
Examples
data(Titanic.survivors.case)
print(Titanic.survivors.case)