Titanic.survivors.case: Titanic survivors data

Description Usage Format Details Source References Examples

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

1

Format

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

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

1
2

Example output

      age     sex      class cases survive
1   child  female  1st class     1       1
2   adult  female  1st class   144     140
3   child    male  1st class     5       5
4   adult    male  1st class   175      57
5   child  female  2nd class    13      13
6   adult  female  2nd class    93      80
7   child    male  2nd class    11      11
8   adult    male  2nd class   168      14
9   child  female  3rd class    31      14
10  adult  female  3rd class   165      76
11  child    male  3rd class    48      13
12  adult    male  3rd class   462      75

CountsEPPM documentation built on May 1, 2019, 10:25 p.m.