perm_dist: Conditional permutations distribution

Description Usage Arguments Details Value Author(s)

Description

Compute the conditional permutation distribution given first stage group assignments

Usage

1
2
perm_dist(x1, x2, g1, g2, stat, B, x3 = NULL, g3 = NULL,
  restricted = TRUE)

Arguments

x1

First stage data

x2

Second stage data

g1

(Dummy) first stage treatment assignments

g2

(Dummy) second stage treatment assignments (see Details)

stat

Function that computes the test statistic (signature function(x,g))

B

Number of permutations

x3

(Dummy) third stage data (e.g. sample size increase)

g3

(Dummy) third stage treatment assignments (see Details)

restricted

Should group sizes be considered fixed

Details

First, second and third stage treatment assignments are only passed to define the second stage sample size and the sizes of the corresponding (treatment) groups. If the number of requested permutations B is larger than the number of all possible permutations, only the latter will be used.

Value

numeric vector

Author(s)

Florian Klinglmueller


floatofmath/resamplingMCP documentation built on May 16, 2019, 1:21 p.m.