Learn R Programming

wintime (version 0.2.0)

setKM: 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)

Value

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

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()).