{
  "schemaVersion": 1,
  "kind": "synthetic-worked-example",
  "title": "Restricted mean survival time from the existing six-device KM example",
  "timeUnit": "day",
  "horizon_day": 10,
  "population": "Six fictional devices observed from day zero; no measured fleet.",
  "eventDefinition": "A fictional first failure; event=false means observation ended without observed failure.",
  "source_url": "https://hesela.dev/data/methods/km-censoring-example.json",
  "source_sha256": "e7399be2df9e400355fb2dfb8c516e093f679d67cd0c8aa06907fb3cac961e2a",
  "generator_sha256": "dd1297ea4f4eb114b3e7f5398f83781b3198848496f3eb4c5da0add283de4eb3",
  "method": "Exact Fraction rectangles under the supplied right-continuous Kaplan-Meier steps; no refit or tail extrapolation.",
  "rmst_fraction": "7",
  "rmst_days": 7.0,
  "horizon_survival_fraction": "5/16",
  "shortcut_comparisons": {
    "recorded_exit_mean_fraction": "17/3",
    "recorded_exit_denominator": 6,
    "observed_failure_mean_fraction": "5",
    "observed_failure_denominator": 3,
    "interpretation": "Mean observation exit and mean among observed failures are not the Kaplan-Meier restricted mean."
  },
  "intervals": [
    {
      "start_day": 0.0,
      "end_day": 2.0,
      "survival_fraction": "1",
      "area_fraction": "2"
    },
    {
      "start_day": 2.0,
      "end_day": 5.0,
      "survival_fraction": "5/6",
      "area_fraction": "5/2"
    },
    {
      "start_day": 5.0,
      "end_day": 8.0,
      "survival_fraction": "5/8",
      "area_fraction": "15/8"
    },
    {
      "start_day": 8.0,
      "end_day": 10.0,
      "survival_fraction": "5/16",
      "area_fraction": "5/8"
    }
  ],
  "horizon_checks": [
    {
      "horizon_day": 5,
      "rmst_fraction": "9/2",
      "rmst_days": 4.5
    },
    {
      "horizon_day": 8,
      "rmst_fraction": "51/8",
      "rmst_days": 6.375
    },
    {
      "horizon_day": 10,
      "rmst_fraction": "7",
      "rmst_days": 7.0
    }
  ],
  "limits": [
    "Invented inputs, not measured fleet reliability or a population estimate.",
    "No confidence interval, censoring correction or delayed-entry handling is added.",
    "This integrates existing KM rows; it is not a general survival estimator.",
    "Only one fictional device remains at risk just before day 10.",
    "The restricted mean is not unrestricted lifetime, MTBF or individual remaining life.",
    "Horizons beyond the final supplied observation are rejected."
  ],
  "sources": [
    {
      "url": "https://link.springer.com/article/10.1186/1471-2288-13-152",
      "locator": "Methods, Definition of RMST, equation 1"
    },
    {
      "url": "https://med.stanford.edu/content/dam/sm/dbds/documents/biostats-workshop/2014-Uno-JCO.pdf",
      "locator": "pp. 2383-2384: common-horizon contrasts and prespecification"
    },
    {
      "url": "https://web.stanford.edu/~lutian/coursepdf/KMpaper.pdf",
      "locator": "Sections 1.4, 2.1 and 2.3: ties, unsupported tail, and survival at the restriction horizon"
    }
  ]
}
