W_W: Calculation of W

View source: R/W_W.R

W_WR Documentation

Calculation of W

Description

This is the function to compute W, which is required for the Win Odds test.

Usage

W_W(p1, p2, lambda = 1)

Arguments

p1

A vector containing the probabilities of the outcome falling into each level of the control arm.

p2

A vector containging the probabilities of the outcome falling into each level of the control arm.

lambda

The ratio of sample sizes between the experimental and control groups, defined as sample size (experimental): sample size (control) = lambda:1. The default value is 1.

Value

The value of W.


OptOTrials documentation built on Sept. 9, 2025, 5:46 p.m.