Learn R Programming

wintime (version 0.2.0)

setEventTimes: Created a sorted vector of event times

Description

This function creates a sorted vector of event times for a pair. This function is used in all pairwise functions.

Usage

setEventTimes(m, delta0, delta1, time0, time1, follow)

Value

A sorted vector of event times (days) for a given pair.

Arguments

m

The number of events in the hierarchy.

delta0

A vector of event indicators for the control person.

delta1

A vector of event indicators for the treatment person.

time0

A vector of event times (days) for the control person.

time1

A vector of event times (days) for the treatment person.

follow

The maximum follow up time (days).