theta: Calculation of theta

View source: R/theta.R

thetaR Documentation

Calculation of theta

Description

This is the function to compute theta (i.e., the expectation of T), which is required for the Win Odds test.

Usage

theta(p1, p2)

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.

Value

The value of theta


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