titanic: Titanic Data

titanicR Documentation

Titanic Data

Description

The sinking of the Titanic is one of the most infamous shipwrecks in history. On April 15, 1912, during her maiden voyage, the widely considered “unsinkable” RMS Titanic sank after colliding with an iceberg. Unfortunately, there weren’t enough lifeboats for everyone onboard, resulting in the death of 1502 out of 2224 passengers and crew. While there was some element of luck involved in surviving, it seems some groups of people were more likely to survive than others. In this challenge, we ask you to build a predictive model that answers the question: “what sorts of people were more likely to survive?” using passenger data (ie name, age, gender, socio-economic class, etc).

Usage

data(titanic)

Format

An object of class "data.frame"

survival

Survival

pclass

Ticket class

sex

Sex

Age

Age in years

sibsp

number of siblings / spouses

parch

number of parents / children

ticket

Ticket number

fare

Passenger fare

cabin

Cabin Number

cabintype

Type of cabin

embarked

Port of Embarkation

References

This data set sourced from https://www.kaggle.com/c/titanic/data?select=train.csv

Examples


data(titanic)
head(titanic)

prettyglm documentation built on Sept. 8, 2023, 5:56 p.m.