| propWINS | R Documentation |
Proportion of wins/losses/ties given the win odds and the win ratio
propWINS(WO, WR, Overall = 1)
WO |
win odds. |
WR |
win ratio. |
Overall |
number of comparisons, the sample size of the active treatment multiplied by the sample size of the placebo. The default is 1, hence gives the proportion. |
a data frame with a number (or proportion if Overall = 1) of wins/losses/ties.
# Example 1 propWINS(WR = 2, WO = 1.5) # Example 2 - Back-calculation COVID19HCE <- hce(GROUP = COVID19$GROUP, TRTP = COVID19$TRTP) res <- calcWINS(COVID19HCE) WR <- res$WR1$WR WO <- res$WO$WO Overall <- res$summary$TOTAL propWINS(WR = WR, WO = WO, Overall = Overall) ## Verify res$summary