Provides simulation tools for power analysis in two-arm
    clinical trials with hierarchical win ratio endpoints. The package
    simulates time-to-event, recurrent event, and continuous outcomes,
    applies prioritized pairwise win/loss scoring, and summarizes win
    ratio and Finkelstein-Schoenfeld test operating characteristics.

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.

Provides estimation and inference for win statistics in
    cluster-randomized trials with prioritized (hierarchical) composite
    outcomes. Supported summaries include the win ratio, win odds, net
    benefit, and desirability of outcome ranking (DOOR), with variance
    estimation and testing procedures that account for within-cluster
    correlation. Methods are described in the accompanying manuscript
    (2026) <doi:10.48550/arXiv.2604.18341>.

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)<https://pubmed.ncbi.nlm.nih.gov/38417455/>. For more information, see the package documentation or the vignette titled "Introduction to wintime."