calcWO.hce: Win odds calculation for 'hce' objects In hce: Design and Analysis of Hierarchical Composite Endpoints

 calcWO.hce R Documentation

Win odds calculation for `hce` objects

Description

Win odds calculation for `hce` objects

Usage

``````## S3 method for class 'hce'
calcWO(x, ...)
``````

Arguments

 `x` an `hce` object. `...` additional parameters.

Value

a data frame containing the win odds and its confidence interval. It contains the following columns:

• WO calculated win odds.

• LCL lower confidence limit.

• UCL upper confidence limit.

• SE standard error of the win odds.

• WOnull win odds of the null hypothesis (specified in the `WOnull` argument).

• alpha two-sided significance level for calculating the confidence interval (specified in the `alpha` argument).

• Pvalue p-value associated with testing the null hypothesis.

• WP calculated win probability.

• WP_SE standard error of the win probability.

• WP_SD standard deviation of the win probability, calculated as `WP_SE` multiplied by `sqrt(N)`.

• N total number of patients in the analysis.

References

Gasparyan SB et al. "Adjusted win ratio with stratification: calculation methods and interpretation." Statistical Methods in Medical Research 30.2 (2021): 580-611. doi:10.1177/0962280220942558

`calcWO()`, `calcWO.formula()`, `calcWO.data.frame()`.

Examples

``````Rates_A <- c(1, 1.5)
Rates_P <- c(2, 2)
dat <- simHCE(n = 500, TTE_A = Rates_A, TTE_P = Rates_P, CM_A = 1.25, CM_P = 1)
calcWO(dat)
calcWO(dat, ref = "A", WOnull = 1, alpha = 0.01)
``````

hce documentation built on May 29, 2024, 5:52 a.m.