Description Usage Format Details Source References Examples
The TITANIC3
data frame describes the survival status of individual passengers on the Titanic. The TITANIC3
data frame does not contain information for the crew, but it does contain actual and estimated ages for almost 80% of the passengers.
1 |
A data frame with 1309 observations on the following 14 variables:
pclass
(a factor with levels 1st
, 2nd
, and 3rd
)
survived
(Survival where 0 = No; 1 = Yes)
name
(Name)
sex
(a factor with levels female
and male
)
age
(age in years)
sibsp
(Number of Siblings/Spouses Aboard)
parch
(Number of Parents/Children Aboard)
ticket
(Ticket Number)
fare
(Passenger Fare)
cabin
(Cabin)
embarked
(a factor with levels Cherbourg
, Queenstown
, and Southampton
)
boat
(Lifeboat Number)
body
(Body Identification Number)
home.dest
(Home/Destination)
Thomas Cason from the University of Virginia has greatly updated and improved the titanic
data frame using the Encyclopedia Titanica and created a new dataset called TITANIC3
. This dataset reflects the state of data available as of August 2, 1999. Some duplicate passengers have been dropped; many errors have been corrected; many missing ages have been filled in; and new variables have been created.
https://hbiostat.org/data/repo/titanic.html
Harrell, F. E. 2001. Regression Modeling Strategies with Applications to Linear Models, Logistic Regression, and Survival Analysis. Springer.
Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.
1 |
Loading required package: lattice
Loading required package: ggplot2
sex
pclass female male
1st 144 179
2nd 106 171
3rd 216 493
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.