Learn R Programming

WINS (version 1.4.3)

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

466

Version

1.4.3

License

GPL (>= 2)

Maintainer

Ying Cui

Last Published

January 13th, 2025

Functions in WINS (1.4.3)

data_mix_stratum

An example with a mixture of endpoint types with three strata.
sim.data

Function for Data Simulation
data_tte

An example with three TTE endpoints.
Z_t_trt

Covariate history in the treatment group.
stat_t.plot

Plot Win Statistics over the Study Time.
data_continuous

An example with three continuous endpoints.
data_binary

An example with three binary endpoints.
partition_t.plot

Plot the Win Proportion over the Study Time.
data_mix

An example with a mixture of endpoint types.
Z_t_con

Covariate history in the control group.
win.stat

Function to Calculate the Win Statistics
win.strategy.default

The Default Win Strategy Function.