paired.permutations: Permutation for non-independent data

View source: R/paired.permutations.R

paired.permutationsR Documentation

Permutation for non-independent data

Description

Randomly permute the paired data.

Usage

paired.permutations( x )

Arguments

x

a list of two numerical vectors to be compared (each vector is an element of the list).

Details

When the data are paired (i.e. non-independent observations), the exchange takes place within each pair. Note: if the data are paired, the elements in the list must be of the same length and in the same order.

Value

It returns a list with paired elements of x randomly permuted.

Note

Internal function called by perm.test.

Author(s)

Massimiliano Pastore

Examples

set.seed(20150605)
x <- list(X1=rnorm(10), X2=rt(10,8))
paired.permutations( x )


overlapping documentation built on Feb. 19, 2026, 9:06 a.m.