Learn R Programming

wintime (version 0.4.0)

RPWT: Time Restricted Pairwise win time

Description

This function calculates the sum of each pair's win time difference (truncated at the user-specified time_restriction (days)) divided by the total number of pairs.

Usage

RPWT(n, n0, n1, m, Time, Delta, tg, tau, time_restriction)

Value

The pairwise win time, and the components of 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).

time_restriction

The time restriction (days) for calculation.