Calculates the state space probabilities using a Kaplan-Meier model (recommended) or a Markov model. This function uses these probabilities to compare both arms and calculate the expected win time of the treatment arm.
EWT(
m,
dist_state0,
dist_state1,
unique_event_times0,
unique_event_times1,
nunique_event_times0,
nunique_event_times1
)
The expected win time of the treatment arm.
The number of events in the hierarchy.
A matrix of control arm state probabilities (returned from wintime::km() or wintime::markov()).
A matrix of treatment arm state probabilities (returned from wintime::km() or wintime::markov()).
A vector of unique control arm event times (days) (returned from wintime::km() or wintime::markov()).
A vector of unique treatment arm event times (days) (returned from wintime::km() or wintime::markov()).
The number of unique control arm event times (returned from wintime::km() or wintime::markov()).
The number of unique treatment arm event times (returned from wintime::km() or wintime::markov()).