getWintimeIntegral: Helper functions for package functions

View source: R/helpers.R

getWintimeIntegralR Documentation

Helper functions for package functions

Description

Win time difference

Usage

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

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.

Value

The win time difference integral.


wintime documentation built on Oct. 31, 2024, 5:10 p.m.