ptitanic

0th

Percentile

Titanic data with passenger names and other details removed.

Titanic data with passenger names and other details removed.

Keywords
datasets
Format

A data frame with 1046 observations on 6 variables.

pclass passenger class, unordered factor: 1st 2nd 3rd
survived factor: died or survived
sex unordered factor: male female
age age in years, min 0.167 max 80.0
sibsp number of siblings or spouses aboard, integer: 0...8
parch number of parents or children aboard, integer: 0...6

Aliases
  • ptitanic
Examples
data(ptitanic)
summary(ptitanic)
# main indicator of missing data is 3rd class esp. with many children
obs.with.nas <- rowSums(is.na(ptitanic)) > 0
prp(rpart(obs.with.nas~., data=ptitanic, method="class"),
    main="observations with missing data", extra=7)
Documentation reproduced from package rpart.plot, version 2.1.2, License: GPL-3

Community examples

Looks like there are no examples yet.