logEValueVec2x2PropDiffGrow: Plain grow e-process for propDiff

View source: R/newsafe2x2Test.R

logEValueVec2x2PropDiffGrowR Documentation

Plain grow e-process for propDiff

Description

The alternative is restricted to the curve thetaA = thetaB + propDiffMin, signed by alternative, which leaves one free parameter; its posterior on a grid of nWeight points under a Beta prior, uniform by default, gives the predictable plug-in for each block, against the pooled null mean. "twoSided" runs both signs of the magnitude and averages their cumulative e-processes.

Usage

logEValueVec2x2PropDiffGrow(
  ya,
  yb,
  na,
  nb,
  propDiffMin,
  alpha,
  alternative = c("twoSided", "greater", "less"),
  betaParameter = NULL,
  earlyStopping = FALSE,
  nWeight = 1000L
)

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.

propDiffMin

numeric in (-1, 1) that defines the minimal relevant difference in proportions thetaA - thetaB, the smallest difference that we would like to detect (with sufficient power).

alpha

numeric in (0, 1) that specifies the tolerable type I error and the null rejection rule e >= 1/alpha.

alternative

a character string specifying the alternative hypothesis. Must be one of "twoSided" (default), "greater" or "less", where "greater" means that group A has the larger proportion.

betaParameter

NULL or a list with betaA1, betaA2: the prior Beta(betaA1, betaA2) on thetaA rescaled to its feasible interval on the curve; B's shapes are unused. NULL means Beta(1, 1), uniform.

earlyStopping

logical, if TRUE cut the vector at the first crossing of 1 / alpha.

nWeight

integer > 0, the number of grid points.

Value

A numeric vector, element i the log e-value on blocks ⁠1..i⁠.


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