adaptive_perm_test: Adaptive permutation test

Description Usage Arguments Details Value Author(s)

Description

Perform an adaptive permutation test

Usage

1
2
adaptive_perm_test(x1, x2, g1, g2, stat, B, alpha = 0.025, x3 = NULL,
  g3 = NULL)

Arguments

x1

First stage observations

x2

Second stage observations

g1

First stage treatment assignments

g2

Second stage treatment assignments (see Details)

stat

Function that computes the test statistic

B

Number of draws from the permutation distribution to use

alpha

Significance level of the test

x3

Third stage observations (e.g. sample size increase)

g3

Third stage treatment allocations (e.g. sample size increase)

Details

Note that we currently assume that the group sizes of the second stage in the adapted trial are equal to those of the preplanned test.

Value

logical indicating wether the test rejects

Author(s)

Florian Klinglmueller


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