etitanic {earth} | R Documentation |
Titanic data with incomplete cases, passenger names, and other details removed.
This dataset is included in the earth package because it is a convenient vehicle for illustrating earth's GLM and factor handling.
The dataset was compiled by Frank Harrell and Robert Dawson:
http://biostat.mc.vanderbilt.edu/twiki/pub/Main/DataSets/titanic.html
See also:
http://biostat.mc.vanderbilt.edu/twiki/pub/Main/DataSets/titanic3info.txt.
For this version of the Titanic data,
passenger details and incomplete cases were deleted
and the name changed to etitanic
to minimise confusion with other
versions ("e" because it is part of the earth package).
Contents of etitanic:
pclass survived sex age sibsp parch 1 1st 1 female 29.000 0 0 2 1st 1 male 0.917 1 2 3 1st 0 female 2.000 1 2 4 1st 0 male 30.000 1 2 5 1st 0 female 25.000 1 2 ... 1309 3rd 0 male 29.000 0 0How
etitanic
was built:
load("titanic3") # from Harrell's web site # discard name, ticket, fare, cabin, embarked, body, home.dest etitanic = titanic3[,c(1,2,4,5,6,7)] etitanic = etitanic[!is.na(etitanic$age),] save(etitanic, file="etitanic.rda")