Description Usage Arguments Details Value Author(s)
Compute the conditional permutation distribution given first stage group assignments
1 2 |
x1 |
First stage data |
x2 |
Second stage data |
g1 |
First stage treatment assignments |
g2 |
(Dummy) second stage treatment assignments (see Details) |
stat |
Function that computes the test statistic (signature |
B |
Number of permutations |
x3 |
Third stage data (e.g. sample size increase) |
g3 |
(Dummy) third stage treatment assignments (see Details) |
restricted |
Should sample sizes be restricted by stage |
stratified |
Should permutation be stratified by stage |
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.
In contrast to perm_dist
cond_dist
does not add the original test statistic if less than all possible permutations are generated.
numeric vector
Florian Klinglmueller
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.