V_S.over.nk: Calcualtion of V

View source: R/V_S.over.nk.R

V_S.over.nkR Documentation

Calcualtion of V

Description

This is the function to compute the value of V over n_{..k}, which is requited for the score test, where n_{..k} denotes the total sample size at the kth analysis.

Usage

V_S.over.nk(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 V over n_{..k}.


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