Learn R Programming

wintime (version 0.2.0)

getWintimeIntegral: Helper functions for package functions

Description

Win time difference

Usage

getWintimeIntegral(m, etimes, time0, time1, delta0, delta1)

Value

The win time difference integral.

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.

Details

This function calculates the win time difference integral for a single pair. This function is used in all pairwise win time methods.