perm_test: perform permutation test

Description Usage Arguments Value Author(s)

Description

Perform a permutation test (stratified by stages)

Usage

1
perm_test(x1, x2, g1, g2, stat, B, x3 = NULL, g3 = NULL, ...)

Arguments

x1

First stage observations

x2

Second stage observations

g1

First stage group assignments

g2

Second stage group assignments

stat

Function that computes test statistic

B

Number of permutations to use

x3

Third stage observations

g3

Third stage group assignments

...

further arguments to perm_dist

Value

p-value of the permutation test

Author(s)

Florian Klinglmueller


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