MyNixOS website logo
Description

Event-Specific Win Ratios for Terminal and Non-Terminal Events.

Provides several confidence interval and testing procedures using event-specific win ratios for semi-competing risks data with non-terminal and terminal events, as developed in Yang et al. (2021<doi:10.1002/sim.9266>). Compared with conventional methods for survival data, these procedures are designed to utilize more data for improved inference procedures with semi-competing risks data. The event-specific win ratios were introduced in Yang and Troendle (2021<doi:10.1177/1740774520972408>). In this package, the event-specific win ratios and confidence intervals are obtained for each event type, and several testing procedures are developed for the global null of no treatment effect on either terminal or non-terminal events. Furthermore, a test of proportional hazard assumptions, under which the event-specific win ratios converge to the hazard ratios, and a test of equal hazard ratios are provided. For summarizing the treatment effect on all events, confidence intervals for linear combinations of the event-specific win ratios are available using pre-determined or data-driven weights. Asymptotic properties of these inference procedures are discussed in Yang et al (2021<doi:10.1002/sim.9266>). Also, transformations are used to yield better control of the type one error rates for moderately sized data sets.

EventWinRatios

This package provides several confidence interval and testing procedures using event-specific win ratios for semi-competing risks data with non-terminal and terminal events, as developed in Yang et al. (2021). The event-specific win ratios were introduced in Yang and Troendle (2021).

The main function wr.test provides various confidence interval and testing procedures with event-specific win ratios:

  • Tests of the global null - testing the null hypothesis of no treatment effect on either the terminal event or the non-terminal event. A set of three tests are provided: the maximum test, the linear combination test, and the chi-squared test.

  • Test of proportional hazards - testing the null hypothesis of the proportionality assumptions for the terminal event and the non-terminal event.

  • Test of equal hazard ratios - testing the null hypothesis of equal hazard ratios for the terminal event and the non-terminal event when they both have proportional hazards.

  • Confidence intervals

    • Confidence intervals of the non-terminal and terminal events respectively
    • Confidence intervals of linear combinations of the non-terminal and terminal events, with either pre-determined or data-driven weights

Note that the wr.test function uses transformations that yield better control of the type one error rates for moderately sized data sets.


Installation

install.packages("EventWinRatios")

Implementation

The following arguments must be inputted into the wr.test function.

  • yh: time to the non-terminal event or censoring
  • hcen: censoring indicator for the non-terminal event (event = 1, censored = 0)
  • yd: time to the terminal event or censoring
  • dcen: censoring indicator for the terminal event (event = 1, censored = 0)
  • z: group indicator (treatment = 1, control = 0)

The linear combination of the event-specific win ratios can be supplied using the lin argument. The significance level for confidence intervals can be controlled by the alpha argument. If they are not supplied by users, the function uses lin = c(0.5, 0.5) and alpha = 0.5 by default.

Note

Linear combination tests can be used to detect an overall effect, which is measured by using a weighted average of the win ratios of the terminal and non-terminal events. The weights can be either a data-driven weights or pre-determined weights. The pre-determined weights can be supplied with the lin argument.

Example

The data set SimuData in the package is used as an example.

library(EventWinRatios)
data(SimuData)

# non-terminal events
yh <- SimuData$yh
hcen <- SimuData$hcen

# terminal events
yd <- SimuData$yd
dcen <- SimuData$dcen

# group indicator
z <- SimuData$z

# Win Ratio tests
result <- wr.test(yh, hcen, yd, dcen, z)
print(result)

Reference

Yang, S., Troendle, J., Pak, D., & Leifer, E. (2022). Event‐specific win ratios for inference with terminal and non‐terminal events. Statistics in medicine, 41(7), 1225-1241.

Yang, S., & Troendle, J. (2021). Event-specific win ratios and testing with terminal and non-terminal events. Clinical Trials, 18(2), 180-187.

Metadata

Version

1.0.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows