Rev 88603 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/datasets/man/Titanic.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2007 R Core Team% Distributed under GPL 2 or later\name{Titanic}\docType{data}\alias{Titanic}\title{Survival of passengers on the Titanic}\description{This data set provides information on the fate of passengers on thefatal maiden voyage of the ocean liner \sQuote{Titanic}, summarized accordingto economic status (class), sex, age and survival.}\usage{Titanic}\format{A 4-dimensional array resulting from cross-tabulating 2201observations on 4 variables. The variables and their levels are asfollows:\tabular{rll}{No \tab Name \tab Levels\cr1 \tab \code{Class} \tab 1st, 2nd, 3rd, Crew\cr2 \tab \code{Sex} \tab Male, Female\cr3 \tab \code{Age} \tab Child, Adult\cr4 \tab \code{Survived} \tab No, Yes}}\details{The sinking of the Titanic is a famous event, and new books are stillbeing published about it. Many well-known facts---from theproportions of first-class passengers to the \sQuote{women andchildren first} policy, and the fact that that policy was notentirely successful in saving the women and children in the thirdclass---are reflected in the survival rates for various classes ofpassenger.These data were originally collected by the British Board of Trade intheir investigation of the sinking. Note that there is not completeagreement among primary sources as to the exact numbers on board,rescued, or lost.Due in particular to the very successful film \sQuote{Titanic}, the lastyears saw a rise in public interest in the Titanic. Very detaileddata about the passengers is now available on the Internet, at sitessuch as \emph{\I{Encyclopedia Titanica}}(\url{https://www.encyclopedia-titanica.org/}).}\source{\bibshow{R:Dawson:1995}.The source provides a data set recording class, sex, age, and survivalstatus for each person on board of the Titanic, and is based on dataoriginally collected by the British Board of Trade and reprinted in:\bibshow{R:British_Government:1990}}\examples{require(graphics)mosaicplot(Titanic, main = "Survival on the Titanic")## Higher survival rates in children?apply(Titanic, c(3, 4), sum)## Higher survival rates in females?apply(Titanic, c(2, 4), sum)## Use loglm() in package 'MASS' for further analysis ...}\keyword{datasets}