calcWO.hceR 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:

See Also

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)