getWintimeIntegral_rest {wintime} | R Documentation |
Win time difference with time restriction
Description
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.
Usage
getWintimeIntegral_rest(
m,
etimes,
time0,
time1,
delta0,
delta1,
time_restriction
)
Arguments
m |
The number of events in the hierarchy. |
etimes |
A sorted vector of event times (days) (returned from wintime::setEventTimes()). |
time0 |
A vector containing the control person's event times (days). |
time1 |
A vector containing the treatment person's event times (days). |
delta0 |
A vector containing the control person's event indicators. |
delta1 |
A vector containing the treatment person's event indicators. |
time_restriction |
The time restriction (days) for calculation. |
Value
A list of the win time difference integral and its components.
[Package wintime version 0.4.0 Index]