{
  "schemaVersion": 1,
  "id": "https://www.crosstabs.com/examples/titanic-survival-by-class#dataset",
  "version": "1.0.0",
  "name": "Titanic Survival by Passenger Class",
  "description": "Survival on the Titanic broken down by ticket class and crew status — a classic 4×2 contingency table from the 1912 Board of Trade inquiry.",
  "field": "history",
  "question": "Was survival on the Titanic associated with passenger class?",
  "takeaway": "Survival was highest in first class and fell sharply across second class, third class, and crew.",
  "datePublished": "2026-06-10",
  "dateModified": "2026-07-31",
  "provenance": {
    "kind": "derived",
    "citation": "British Board of Trade inquiry (1912), as distributed in R's Titanic dataset.",
    "sourceUrl": "https://stat.ethz.ch/R-manual/R-devel/library/datasets/html/Titanic.html"
  },
  "variables": {
    "row": {
      "name": "Passenger class",
      "categories": [
        "First",
        "Second",
        "Third",
        "Crew"
      ]
    },
    "column": {
      "name": "Outcome",
      "categories": [
        "Survived",
        "Died"
      ]
    }
  },
  "counts": [
    [
      203,
      122
    ],
    [
      118,
      167
    ],
    [
      178,
      528
    ],
    [
      212,
      673
    ]
  ]
}
