compare_tests_onesample: Compare one-sample test procedures

Description Usage Arguments Details Value Author(s)

Description

Compare operating characteristics for a number of one-sample tests

Usage

1
compare_tests_onesample(B, test_funs, n1, n, rule, rdist, ...)

Arguments

test_funs

list of test functions (see Details)

n1

first stage sample size

n

pre-planned total sample size

rule

sample size reassessment rule (see Details)

rdist

distribution from which to draw observations

...

additional arguments to rdist

Details

test_funs needs to be a list of functions that take arguments x,n1,n,ne,permutations and return TRUE of FALSE depending on whether the corresponding decision rule rejects the null hypothesis or not.

rule needs to be a function that takes as argument the vector of first stage observations and return an interger number, which (if larger than n) will be used as the new total sample size.

Value

let's see

Author(s)

Florian Klinglmueller


floatofmath/adaperm documentation built on May 16, 2019, 1:18 p.m.