This function calculates the win time difference integral for a single pair with truncation at time_restriction. This function is used in all pairwise win time methods.
getWintimeIntegral_rest(
m,
etimes,
time0,
time1,
delta0,
delta1,
time_restriction
)
A list of the win time difference integral and its components.
The number of events in the hierarchy.
A sorted vector of event times (days) (returned from wintime::setEventTimes()).
A vector containing the control person's event times (days).
A vector containing the treatment person's event times (days).
A vector containing the control person's event indicators.
A vector containing the treatment person's event indicators.
The time restriction (days) for calculation.