setKM: Set event times and indicators used in the Kaplan-Meier...

View source: R/helpers.R

setKMR Documentation

Set event times and indicators used in the Kaplan-Meier survival curve calculation

Description

This function creates the time_km and delta_km matrices used for wintime::km().

Usage

setKM(n, m, time, delta)

Arguments

n

The total number of trial participants.

m

The number of events in the hierarchy.

time

The row reversal of the Time matrix (days) (created inside wintime::km()).

delta

The row reversal of the Delta matrix (created inside wintime::km()).

Value

A list containing the event time matrix and the event indicator matrix used in wintime::km().


wintime documentation built on Oct. 31, 2024, 5:10 p.m.