Learn R Programming

WINS (version 1.5.1)

The R WINS Package

Description

Calculate the win statistics (win ratio, net benefit and win odds) for prioritized multiple endpoints, plot the win statistics and win proportions over study time if at least one time-to-event endpoint is analyzed, and simulate datasets with dependent endpoints. The package can handle any type of outcomes (continuous, ordinal, binary, time-to-event) and allow users to perform stratified analysis, inverse probability of censoring weighting (IPCW) and inverse probability of treatment weighting (IPTW) analysis.

Copy Link

Version

Install

install.packages('WINS')

Monthly Downloads

523

Version

1.5.1

License

GPL (>= 2)

Maintainer

Ying Cui

Last Published

July 2nd, 2025

Functions in WINS (1.5.1)

partition_t.plot

Plot the Win Proportion over the Study Time.
sim.data

Function for Data Simulation
win.stat

Function to Calculate the Win Statistics
win.strategy.default

The Default Win Strategy Function.
data_mix_stratum

An example with a mixture of endpoint types with three strata.
data_mix

An example with a mixture of endpoint types.
Z_t_con

Covariate history in the control group.
stat_t.plot

Plot Win Statistics over the Study Time.
data_binary

An example with three binary endpoints.
data_continuous

An example with three continuous endpoints.
data_tte

An example with three TTE endpoints.
Z_t_trt

Covariate history in the treatment group.