setKM {wintime} | R 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().
[Package wintime version 0.4.0 Index]