Learn R Programming

causaldata (version 0.1.3)

titanic: Data from the sinking of the Titanic

Description

titanic comes from the sinking of the Titanic, and can be used to look at survival by different demographic characteristics.

Usage

titanic

Arguments

Format

A data frame with 4820 rows and 7 variables

class

class (ticket)

age

Age (Child vs. Adult)

sex

Gender

survived

Survived

Details

This data is used in the Matching and Subclassification chapter of Causal Inference: The Mixtape by Cunningham.

References

Cunningham. 2021. Causal Inference: The Mixtape. Yale Press. https://mixtape.scunning.com/index.html.