predictiveThetas2x2: Predictive Beta posterior means of thetaA and thetaB

View source: R/newsafe2x2Test.R

predictiveThetas2x2R Documentation

Predictive Beta posterior means of thetaA and thetaB

Description

Independent Beta posteriors on thetaA and thetaB with prior shapes betaParameter, updated with the blocks before each block: block i uses blocks ⁠1..i-1⁠ only, and block 1 the prior.

Usage

predictiveThetas2x2(ya, yb, na, nb, betaParameter)

Arguments

ya

positive observations/ events per data block in group A: a numeric with integer values between (and including) 0 and na, the number of observations in group A per block.

yb

positive observations/ events per data block in group B: a numeric with integer values between (and including) 0 and nb, the number of observations in group B per block.

na

number of observations in group A per data block, one value or one per block.

nb

number of observations in group B per data block, one value or one per block.

betaParameter

list(betaA1, betaA2, betaB1, betaB2), the Beta prior shapes on thetaA and thetaB for "eBeta", each a single finite positive number; NULL means 1 / (2 * na) and 1 / (2 * nb), taking block 1's sizes with a warning when they vary by block. A given prior keeps its own block 1: the test does not replace it by the UMP e-value. For "grow" on propDiff, the test puts Beta(betaA1, betaA2) on thetaA rescaled to its feasible interval on the curve, B's shapes unused, and NULL means uniform; planning ignores it.

Value

A list of numeric vectors thetaA and thetaB, one value per block.


safestats documentation built on Oct. 5, 2026, 9:07 a.m.