Learn R Programming

wintime (version 0.4.0)

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

406

Version

0.4.0

License

MIT + file LICENSE

Maintainer

James Troendle

Last Published

June 30th, 2025

Functions in wintime (0.4.0)

getWintimeIntegral

Helper functions for package functions
bootstrap

Resample using bootstraps
km

Fit a Kaplan-Meier model
wintime

Run a win time calculation
RWTR

Restricted win time ratio
WTR

Win time ratio
REWTP

Expected win time against trial population
PWT

Pairwise win time
EWT

Expected win time
COMP

Run composite analysis
RMT

Restricted mean survival in favor of treatment
REWTPR

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

Expected win time against trial population
EWTPR

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

Expected win time against reference
RPWT

Time Restricted Pairwise win time
setEventTimes

Created a sorted vector of event times
setKM

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

Fit a Markov model
perm

Resample using permutations
getWintimeIntegral_rest

Win time difference with time restriction