L.test: Lgamma permutation test

Description Usage Arguments Value Author(s) Examples

View source: R/L.test.R

Description

Two-sample permutation test with two-sided alternative with the following statistics:

∑[1≤ i ≤ n.x]∑[1≤ j ≤ n.y] ln(1+|x[i]-y[j]|^γ)

Usage

1
  L.test(x, y, gamma, normalization = FALSE, n.permutations = 10000, exact = NULL, permutations = NULL, check_permutations = TRUE, ...)

Arguments

x

a (non-empty) numeric vector of data values.

y

a (non-empty) numeric vector of data values.

gamma

a positive numeric value corresponds to the power parameter of the test statistic.

normalization

a logical indicating whether to use samples scaling. The normalizator is

2∑[1≤ i<j≤ n] |z[i]-z[j]|/(n(n-1)), z = c(x,y), n=n.x+n.y.

n.permutations

a number indicating the number of random permutations. Used only if "permutations" argument is not given.

exact

a logical indicating whether to use a permutations set equal to the entire permutations set. If NULL automatically set to TRUE if power of exact permutations set less or equal "n.permutations" argument. Used only if "permutations" argument is not given.

permutations

an optional matrix containing permutations set. Permutations should place in the columns of the matrix and contain values coincided with the given samples.

check_permutations

an optional logical indicating whether to check the given permutations set. Used only if "permutations" argument is given.

...

additional parameters.

Value

A list with class "htest" containing the following components:

p.value

the p-value for the test.

normalization

a logical indication of whether normalization has been used.

normalizer

value of used normalizer.

permutations

used permutations set with the original samples in the first column.

stat.values

vector of criterion statistics obtained. the first value corresponds to the original sample.

n.permutations

size of used permutations set.

exact

a logical indication of whether exact permutations set has been used.

n.x

length of x sample

n.y

length of y sample

alternative

a character string describing the alternative hypothesis.

method

a character string indicating what type of L-test was performed.

data.name

a character string giving the name(s) of the data.

Author(s)

Dmitry Salnikov (mejibkop.ru@mail.ru)

Examples

1
2
3
4
  x <- rnorm(5)
  y <- rnorm(10)
  
  L.test(x, y, gamma = 2)

DmitrySalnikov/LPT documentation built on June 20, 2020, 2:03 p.m.