simulateIncorrectStoppingTimesFisher {safestats}R Documentation

Simulate incorrect optional stopping with fisher's exact test's p-value as the stopping rule.

Description

Simulate incorrect optional stopping with fisher's exact test's p-value as the stopping rule.

Usage

simulateIncorrectStoppingTimesFisher(
  thetaA,
  thetaB,
  alpha,
  na,
  nb,
  maxSimStoptime = 10000,
  M = 1000,
  numberForSeed = NULL
)

Arguments

thetaA

Bernoulli distribution parameter in group A

thetaB

Bernoulli distribution parameter in group B

alpha

Significance level

na

number of observations in group a per data block

nb

number of observations in group b per data block

maxSimStoptime

maximal number of blocks to sample in each experiment

M

Number of simulations to carry out, default 1e3.

numberForSeed

number for seed to set, default NULL.

Value

list with stopping times and rejection decisions.

Examples

simulateIncorrectStoppingTimesFisher(thetaA = 0.3,
                                     thetaB = 0.3,
                                     alpha = 0.05,
                                     na = 1,
                                     nb = 1,
                                     M = 10,
                                     maxSimStoptime = 100,
                                     numberForSeed = 251)

[Package safestats version 0.8.7 Index]