Learn R Programming

wintime (version 0.4.2)

Win Time Methods for Time-to-Event Data in Clinical Trials

Description

Performs an analysis of time-to-event clinical trial data using various "win time" methods, including 'ewt', 'ewtr', 'rmt', 'ewtp', 'rewtp', 'ewtpr', 'rewtpr', 'max', 'wtr', 'rwtr', 'pwt', and 'rpwt'. These methods are used to calculate and compare treatment effects on ordered composite endpoints. The package handles event times, event indicators, and treatment arm indicators and supports calculations on observed and resampled data. Detailed explanations of each method and usage examples are provided in "Use of win time for ordered composite endpoints in clinical trials," by Troendle et al. (2024). For more information, see the package documentation or the vignette titled "Introduction to wintime."

Copy Link

Version

Install

install.packages('wintime')

Monthly Downloads

90

Version

0.4.2

License

MIT + file LICENSE

Maintainer

James Troendle

Last Published

December 17th, 2025

Functions in wintime (0.4.2)

wintime

Run a win time calculation
bootstrap

Resample using bootstraps
getWintimeIntegral

Helper functions for package functions
setEventTimes

Created a sorted vector of event times
setKM

Set event times and indicators used in the Kaplan-Meier survival curve calculation
EWT

Expected win time
COMP

Run composite analysis
RMT

Restricted mean survival in favor of treatment
REWTP

Expected win time against trial population
RPWT

Time Restricted Pairwise win time
REWTPR

Time Restricted Expected win time against trial population With redistribution to the right
PWT

Pairwise win time
EWTR

Expected win time against reference
EWTP

Expected win time against trial population
EWTPR

Expected win time against trial population With redistribution to the right
WTR

Win time ratio
getWintimeIntegral_rest

Win time difference with time restriction
RWTR

Restricted win time ratio
km

Fit a Kaplan-Meier model
markov

Fit a Markov model
perm

Resample using permutations