group.action {RATest}R Documentation

General Construction of Permutation Tests: Group Actions

Description

Calculates the pre-specified actions on data. Consider data ZZ taking values in a sample space Ω\Omega. Let G\mathbf{G} be a finite group of transformations from Ω\Omega onto itself, with M=GM=\vert \mathbf{G}\vert. This function applies gZgZ as gg varies in G\bf{G}. If ZZ is a vector of sizeNN and the actions gg are permutations, M=N!M=N!. If the actions gg are sign changes, then M={1,1}NM=\{1,-1\}^{N}.

Usage

group.action(Z, M, type = "permutations")

Arguments

Z

Numeric. A vector of size NN to which the group action will act on. In the two-sample testing problem, ZZ is the pooled sample.

M

Numeric. Number of actions to be performed. This is the number of transformations used in the stochastic approximation to the test. This is due to the fact that in some cases M=GM=\vert \mathbf{G}\vert is too large, which makes the application of the actions computationally expensive.

type

Character. The action to be performed. It represents gxgx, the action the action of gGg\in\mathbf{G} on xΩx\in\Omega. It can be either permutations or sign changes.

Value

Numeric. A matrix of size N×MN\times M where NN is the size of input ZZ and MM is the number of actions to be performed on ZZ.

Author(s)

Maurcio Olivares

Ignacio Sarmiento Barbieri

References

Lehmann, Erich L. and Romano, Joseph P (2005) Testing statistical hypotheses.Springer Science & Business Media.


[Package RATest version 0.1.10 Index]