Learn R Programming

wintime (version 0.2.0)

PWT: Pairwise win time

Description

This function calculates the sum of each pair's win time difference divided by the total number of pairs.

Usage

PWT(n, n0, n1, m, Time, Delta, tg, tau)

Value

The pairwise win time.

Arguments

n

The total number of trial participants.

n0

The number of control arm patients.

n1

The number of treatment arm patients.

m

The number of events in the hierarchy.

Time

A m x n matrix of event time (days). Rows should represent events and columns should represent participants. Event rows should be in increasing order of clinical severity.

Delta

A m x n matrix of event indicators. Rows should represent events and columns should represent participants. Event rows should be in increasing order of clinical severity.

tg

A numeric vector containing treatment arm indicators (1 for treatment, 0 for control).

tau

The maximum follow up time (days).