pq_fun: Calculation of pq

View source: R/pq_fun.R

pq_funR Documentation

Calculation of pq

Description

This is the function to compute p_{jk} and q_{ik}, which are required for the Win Odds test.

Usage

pq_fun(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 p_{jk} and q_{ik}.


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