This function calculates the sum of each pair's win time difference divided by the total number of pairs.
PWT(n, n0, n1, m, Time, Delta, tg, tau)
The pairwise win time.
The total number of trial participants.
The number of control arm patients.
The number of treatment arm patients.
The number of events in the hierarchy.
A m x n matrix of event time (days). Rows should represent events and columns should represent participants. Event rows should be in increasing order of clinical severity.
A m x n matrix of event indicators. Rows should represent events and columns should represent participants. Event rows should be in increasing order of clinical severity.
A numeric vector containing treatment arm indicators (1 for treatment, 0 for control).
The maximum follow up time (days).