Learn R Programming

myIO (version 1.2.0)

transform_survfit: Kaplan-Meier survival transform

Description

Computes the KM estimator, Greenwood CI, and censoring indicators from raw time-to-event data. No dependency on the survival package.

Usage

transform_survfit(data, mapping, options = list())

Value

List with `data` (data.frame) and `meta`.

Arguments

data

Data frame with time and status columns.

mapping

Named list; must contain `time` and `status`.

options

List; `level` (default 0.95) controls CI width.